Files: 81bc698eafe0e2013602fe8f6e9aae6fe7b0ee7b / tests / interface / balance.wast
540 bytesRaw
1 | ;; address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b has a balance of 100 |
2 | (module |
3 | (memory 1 (segment 0 "\5d\48\c1\01\89\04\a1\72\88\68\29\bb\bd\9c\6f\4a\2d\06\c4\7b")) |
4 | (import $balance "ethereum" "balance" (param i32 i32)) |
5 | (export "a" memory) |
6 | (export "test" 0) |
7 | (func |
8 | (block |
9 | (call_import $balance (i32.const 0) (i32.const 0)) |
10 | (if (i64.eq (i64.load (i32.const 0)) (i64.const 100)) |
11 | (if (i64.eq (i64.load (i32.const 8)) (i64.const 0)) |
12 | (return) |
13 | ) |
14 | ) |
15 | (unreachable) |
16 | ) |
17 | ) |
18 | ) |
19 | |
20 |
Built with git-ssb-web