Files: 104b97b6875d1f6ba6bd5ebaa5b680ad29f492bb / 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