ligo/src/bin_client/test/contracts/fail_amount.tz

7 lines
183 B
Plaintext

# Fail if the amount transferred is less than 10
parameter unit;
storage unit;
code { DROP;
AMOUNT; PUSH mutez 10000000; CMPGT; IF {FAIL} {};
UNIT; NIL operation; PAIR}