ligo/test/contracts/hardlimit.tz

8 lines
206 B
Plaintext
Raw Normal View History

2017-01-11 19:15:38 +04:00
parameter unit
2016-09-08 21:13:10 +04:00
code
{ # This contract stops accepting transactions after N incoming transactions
CDR ; DUP ; PUSH int 0 ; CMPLT; IF {PUSH int -1 ; ADD} {FAIL};
UNIT; PAIR}
2017-01-11 19:15:38 +04:00
return unit
storage int