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
+9 -9
View File
@@ -1,27 +1,27 @@
contract Remote1 =
function main : (int) => int
entrypoint main : (int) => int
contract Remote2 =
function call : (Remote1, int) => int
entrypoint call : (Remote1, int) => int
contract Remote3 =
function get : () => int
function tick : () => ()
entrypoint get : () => int
entrypoint tick : () => ()
contract RemoteCall =
stateful function call(r : Remote1, x : int) : int =
stateful entrypoint call(r : Remote1, x : int) : int =
r.main(gas = 10000, value = 10, x)
function staged_call(r1 : Remote1, r2 : Remote2, x : int) =
entrypoint staged_call(r1 : Remote1, r2 : Remote2, x : int) =
r2.call(r1, x)
function increment(r3 : Remote3) =
entrypoint increment(r3 : Remote3) =
r3.tick()
function get(r3 : Remote3) =
entrypoint get(r3 : Remote3) =
r3.get()
function plus(x, y) = x + y
entrypoint plus(x, y) = x + y