leo/tests/compiler/finalize/decrement.leo
2022-11-12 11:28:58 -08:00

17 lines
326 B
Plaintext

/*
namespace: Compile
expectation: Pass
*/
program test.aleo {
mapping amounts: address => u128;
transition decrease_self(amount: u128) {
return then finalize(self.caller, amount);
}
finalize decrease_self(addr: address, amount: u128) {
decrement(amounts, addr, amount);
}
}