sophia/test/contracts/bad_init_state_access.aes
2019-06-28 09:42:28 +02:00

14 lines
259 B
Plaintext

contract BadInit =
type state = int
entrypoint new_state(n) = state + n
stateful entrypoint roundabout(n) = put(n)
stateful entrypoint set_state(n) = roundabout(n)
stateful entrypoint init() =
set_state(4)
new_state(0)
state + state