mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-19 08:02:14 +03:00
14 lines
244 B
Plaintext
14 lines
244 B
Plaintext
|
/*
|
||
|
namespace: Compile
|
||
|
expectation: Pass
|
||
|
*/
|
||
|
|
||
|
mapping amounts: address => u128;
|
||
|
|
||
|
@program
|
||
|
function increase_self(amount: u128) {
|
||
|
finalize(self.caller, amount);
|
||
|
} finalize(addr: address, amount: u128) {
|
||
|
increment(amounts, addr, amount);
|
||
|
}
|