ligo/test/scripts/hardlimit.tez
2016-09-08 19:29:33 -07:00

8 lines
248 B
Plaintext

parameter void
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 } {} ;
PUSH VOID ; PAIR }
return void
storage uint32