Files: 153d7d5e0c516e7c72aadb4a57a7087c0a50ace6 / tests / interface / callValue.wast
396 bytesRaw
1 | ;; call value of 0x056bc75e2d63100000 (100 ETH) |
2 | (module |
3 | (import "ethereum" "getCallValue" (func $callValue (param i32))) |
4 | (memory 1) |
5 | (export "memory" (memory 0)) |
6 | (export "main" (func $main)) |
7 | (func $main |
8 | (block |
9 | (call $callValue (i32.const 0)) |
10 | (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x0500000000000000)) |
11 | (return) |
12 | ) |
13 | (unreachable) |
14 | ) |
15 | ) |
16 | ) |
17 |
Built with git-ssb-web