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
+3 -3
View File
@@ -3,7 +3,7 @@ contract Counter =
record state = { value : int }
function init(val) = { value = val }
function get() = state.value
stateful function tick() = put(state{ value = state.value + 1 })
entrypoint init(val) = { value = val }
entrypoint get() = state.value
stateful entrypoint tick() = put(state{ value = state.value + 1 })