Files: 4abc5f9ec71beac0381b08cc3d09a60d65be1856 / tests / interface / callDataCopy.wast
464 bytesRaw
1 | ;; calldata is "596f75206172652077616974...", but i64.load works in LSB mode |
2 | (module |
3 | (import "ethereum" "callDataCopy" (func $callDataCopy (param i32 i32 i32))) |
4 | (memory 1) |
5 | (export "memory" (memory 0)) |
6 | (export "main" (func $main)) |
7 | (func $main |
8 | (block |
9 | (call $callDataCopy (i32.const 0) (i32.const 0) (i32.const 8)) |
10 | (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x2065726120756f59)) |
11 | (return) |
12 | ) |
13 | (unreachable) |
14 | ) |
15 | ) |
16 | ) |
17 |
Built with git-ssb-web