ethereumj-personal/ethereumj-studio/samples/call-me-more.se

19 lines
280 B
Plaintext
Raw Normal View History

2014-12-26 08:36:37 +00:00
init:
// Setting the storage value
contract.storage[999] = 3
code:
// Using the storage on the call
a = contract.storage[999]
2014-12-26 08:36:37 +00:00
if a > 0:
contract.storage[999] = a - 1
// call to myself:
2014-06-18 09:18:30 +00:00
send((tx.gas/10 * 8), contract.address, 0)
2014-12-26 08:36:37 +00:00
else:
stop