Update tests for entrypoints
This commit is contained in:
@@ -2,12 +2,12 @@ contract BadInit =
|
||||
|
||||
type state = int
|
||||
|
||||
function new_state(n) = state + n
|
||||
entrypoint new_state(n) = state + n
|
||||
|
||||
stateful function roundabout(n) = put(n)
|
||||
stateful function set_state(n) = roundabout(n)
|
||||
stateful entrypoint roundabout(n) = put(n)
|
||||
stateful entrypoint set_state(n) = roundabout(n)
|
||||
|
||||
stateful function init() =
|
||||
stateful entrypoint init() =
|
||||
set_state(4)
|
||||
new_state(0)
|
||||
state + state
|
||||
|
||||
Reference in New Issue
Block a user