Files: efd8e0e89ceeb6cd303b56c917ef63c8e68da7ca / tests / interface / balance.wast
588 bytesRaw
1 | ;; address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b has a balance of 0x056bc75e2d63100000 (100 ETH) |
2 | (module |
3 | (memory 1 (segment 0 "\7b\c4\06\2d\4a\6f\9c\bd\bb\29\68\88\72\a1\04\89\01\c1\48\5d")) |
4 | (import $balance "ethereum" "getBalance" (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 0x6bc75e2d63100000)) |
11 | (if (i64.eq (i64.load (i32.const 8)) (i64.const 0x05)) |
12 | (return) |
13 | ) |
14 | ) |
15 | (unreachable) |
16 | ) |
17 | ) |
18 | ) |
19 | |
20 |
Built with git-ssb-web