2014-06-17 15:43:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
init:
|
|
|
|
|
2014-06-17 17:40:56 +00:00
|
|
|
// Setting the storage value
|
2014-06-17 15:43:47 +00:00
|
|
|
contract.storage[999] = 3
|
|
|
|
|
|
|
|
code:
|
|
|
|
|
2014-06-17 17:40:56 +00:00
|
|
|
// Using the storage on the call
|
2014-06-17 15:43:47 +00:00
|
|
|
a = contract.storage[999]
|
|
|
|
|
|
|
|
if a > 0:
|
|
|
|
contract.storage[999] = a - 1
|
|
|
|
|
2014-06-17 17:40:56 +00:00
|
|
|
// call to myself:
|
2014-06-18 09:18:30 +00:00
|
|
|
send((tx.gas/10 * 8), contract.address, 0)
|
2014-06-17 15:43:47 +00:00
|
|
|
else:
|
|
|
|
stop
|