nimplay/examples/hello.nim

17 lines
368 B
Nim
Raw Normal View History

2019-05-06 19:25:35 +00:00
import ../eth_contracts
import endians
import stint
2019-05-06 19:25:35 +00:00
2019-05-17 16:54:21 +00:00
# proc main() {.exportwasm.} =
# proc test() =
# return 1
# var res = 1234.stuint(256).toByteArrayBE
# finish(addr res, sizeof(res).int32)
2019-05-06 19:25:35 +00:00
proc main() {.exportwasm.} =
2019-05-17 16:54:21 +00:00
proc test(): int =
return 1
var res = 1234.stuint(256).toByteArrayBE
2019-05-06 19:25:35 +00:00
finish(addr res, sizeof(res).int32)