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