Files: a1cbfac008b122511f7f6be08a5e1dc164c4a9ad / tests / interface / callValue.wast
398 bytesRaw
1 | ;; call value of 100 |
2 | (module |
3 | (memory 1) |
4 | (import $callValue "ethereum" "callValue" (param i32)) |
5 | |
6 | (export "a" memory) |
7 | (export "test" 0) |
8 | (func |
9 | (block |
10 | (call_import $callValue (i32.const 0)) |
11 | (if (i64.eq (i64.load (i32.const 0)) (i64.const 100)) |
12 | (if (i64.eq (i64.load (i32.const 8)) (i64.const 0)) |
13 | (return) |
14 | ) |
15 | ) |
16 | (unreachable) |
17 | ) |
18 | ) |
19 | ) |
20 |
Built with git-ssb-web