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
+5 -5
View File
@@ -6,11 +6,11 @@
contract SimpleStorage {
uint storedData
function set(uint x) {
entrypoint set(uint x) {
storedData = x
}
function get() constant returns (uint) {
entrypoint get() constant returns (uint) {
return storedData
}
}
@@ -20,9 +20,9 @@ contract SimpleStorage =
record state = { data : int }
function init(value : int) : state = { data = value }
entrypoint init(value : int) : state = { data = value }
function get() : int = state.data
entrypoint get() : int = state.data
stateful function set(value : int) =
stateful entrypoint set(value : int) =
put(state{data = value})