leo/tests/compiler/address/ternary.leo

14 lines
362 B
Plaintext
Raw Normal View History

2021-04-20 04:08:14 +03:00
/*
namespace: Compile
expectation: Pass
input_file:
2021-05-03 16:47:33 +03:00
- inputs/address1.in
- inputs/address2.in
2021-04-20 04:08:14 +03:00
*/
function main(x: address) -> bool {
2022-01-26 03:17:36 +03:00
const sender = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9;
const receiver = aleo18qgam03qe483tdrcc3fkqwpp38ehff4a2xma6lu7hams6lfpgcpqy3sr3p;
2021-04-20 04:08:14 +03:00
return x == sender ? receiver == x : sender == x;
}