ligo/test/scripts/fail_amount.tez
2017-07-19 18:13:03 +02:00

6 lines
156 B
Plaintext

# Fail if the amount transferred is less than 10
parameter unit;
storage unit;
return unit;
code {CAAR; PUSH tez "10"; CMPGT; IF {FAIL} {UNIT; UNIT; PAIR}}