git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 841228acfa1dad00f990ebe18290a46130f85d5d

Files: 841228acfa1dad00f990ebe18290a46130f85d5d / tests / interface / callValue.wast

396 bytesRaw
1;; call value of 0x056bc75e2d63100000 (100 ETH)
2(module
3 (import "ethereum" "getCallValue" (func $callValue (param i32)))
4 (memory 1)
5 (export "memory" (memory 0))
6 (export "main" (func $main))
7 (func $main
8 (block
9 (call $callValue (i32.const 0))
10 (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x0500000000000000))
11 (return)
12 )
13 (unreachable)
14 )
15 )
16)
17

Built with git-ssb-web