git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: e7e36382dc9e3373aad516a7c37df5e4fa7554a6

Files: e7e36382dc9e3373aad516a7c37df5e4fa7554a6 / 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