2019-05-06 19:25:35 +00:00
|
|
|
import ../eth_contracts
|
2019-05-17 13:36:10 +00:00
|
|
|
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
|
2019-05-17 13:36:10 +00:00
|
|
|
var res = 1234.stuint(256).toByteArrayBE
|
2019-05-06 19:25:35 +00:00
|
|
|
finish(addr res, sizeof(res).int32)
|