leo/tests/compiler/finalize/increment.leo
2022-09-07 10:39:00 -07:00

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);
}