leo/tests/compiler/finalize/increment.leo

14 lines
244 B
Plaintext
Raw Normal View History

2022-09-07 20:39:00 +03:00
/*
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);
}