mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 15:15:47 +03:00
17 lines
320 B
Plaintext
17 lines
320 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
*/
|
|
|
|
program test.aleo {
|
|
mapping amounts: address => u128;
|
|
|
|
transition decrease_self(amount: u128) {
|
|
async finalize(self.caller, amount);
|
|
}
|
|
|
|
finalize decrease_self(addr: address, amount: u128) {
|
|
decrement(amounts, addr, amount);
|
|
}
|
|
}
|