git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 011465cea528e67aaf5ce8304698823a4700189e

Files: 011465cea528e67aaf5ce8304698823a4700189e / tests / interface / callDataCopy.wast

446 bytesRaw
1;; calldata is "596f75206172652077616974...", but i64.load works in LSB mode
2(module
3 (memory 1)
4 (import $callDataCopy "ethereum" "callDataCopy" (param i32 i32 i32))
5
6 (export "memory" memory)
7 (export "test" 0)
8 (func
9 (block
10 (call_import $callDataCopy (i32.const 0) (i32.const 0) (i32.const 8))
11
12 (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x2065726120756f59))
13 (return)
14 )
15 (unreachable)
16 )
17 )
18)
19

Built with git-ssb-web