leo/tests/compiler/finalize/increment.leo

17 lines
320 B
Plaintext
Raw Normal View History

2022-09-07 20:39:00 +03:00
/*
namespace: Compile
expectation: Pass
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
mapping amounts: address => u128;
transition increase_self(amount: u128) {
async finalize(self.caller, amount);
}
finalize increase_self(addr: address, amount: u128) {
increment(amounts, addr, amount);
}
2022-09-07 20:39:00 +03:00
}