Files: 3c4a2d1f6298f7d8b4e012acbb8edd52f1bf5203 / 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