git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 51739ba9fc171bb7d0f5e1bfee7b9021587cdede

Files: 51739ba9fc171bb7d0f5e1bfee7b9021587cdede / tests / interface / callValue.wast

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

Built with git-ssb-web