ligo/test/scripts/hardlimit.tez
2017-01-20 13:25:14 +01:00

8 lines
243 B
Plaintext

parameter unit
code
{ # This contract stop to accept transactions after N incoming transactions
CDR ; PUSH (Uint32 1) ; SWAP ; SUB ;
DUP ; PUSH (Uint32 0) ; COMPARE ; EQ ; IF { FAIL } {} ;
UNIT ; PAIR }
return unit
storage uint32