Update tests for entrypoints

This commit is contained in:
Ulf Norell
2019-06-27 14:16:33 +02:00
parent 85408a12a2
commit 6a59e455ce
51 changed files with 465 additions and 446 deletions
+4 -4
View File
@@ -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