git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 35dfa5477c5c02ad53d5eef194860e48f9677897

Files: 35dfa5477c5c02ad53d5eef194860e48f9677897 / 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