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
@@ -9,15 +9,15 @@ contract Events =
| BadEvent1(string, string)
| BadEvent2(indexed int, indexed int, indexed int, indexed address)
function f1(x : int, y : string) =
entrypoint f1(x : int, y : string) =
Chain.event(Event1(x, x+1, y))
function f2(s : string) =
entrypoint f2(s : string) =
Chain.event(Event2(s, Call.caller))
function f3(x : int) =
entrypoint f3(x : int) =
Chain.event(Event1(x, x + 2, Int.to_str(x + 7)))
function i2s(i : int) = Int.to_str(i)
function a2s(a : address) = Address.to_str(a)
entrypoint i2s(i : int) = Int.to_str(i)
entrypoint a2s(a : address) = Address.to_str(a)