git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: d4ba20b58c01dea031c4dbd86e4a99d066ca1c28

Files: d4ba20b58c01dea031c4dbd86e4a99d066ca1c28 / tests / interface / callDataCopy.wast

445 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 "main" 0)
8 (func
9 (block
10 (call_import $callDataCopy (i32.const 0) (i32.const 0) (i32.const 8))
11 (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x2065726120756f59))
12 (return)
13 )
14 (unreachable)
15 )
16 )
17)
18

Built with git-ssb-web