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

19 lines
291 B
Plaintext
Raw Normal View History

init:
// Setting the storage value
contract.storage[999] = 3
code:
// Using the storage on the call
a = contract.storage[999]
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)
else:
stop