mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-10 11:55:54 +00:00
19 lines
291 B
Plaintext
19 lines
291 B
Plaintext
|
|
|
|
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:
|
|
send((tx.gas/10 * 8), contract.address, 0)
|
|
else:
|
|
stop |