leo/tests/compiler/function/self.leo
2022-10-05 16:53:49 -07:00

14 lines
281 B
Plaintext

/*
namespace: Compile
expectation: Pass
*/
program test.aleo {
transition matches(addr: address) -> bool {
async finalize(self.caller);
return self.caller == addr;
} finalize matches(addr: address) -> bool {
return addr == self.caller;
}
}