git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 51739ba9fc171bb7d0f5e1bfee7b9021587cdede

Files: 51739ba9fc171bb7d0f5e1bfee7b9021587cdede / tests / interface / balance.wast

560 bytesRaw
1;; address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b has a balance of 0x056bc75e2d63100000 (100 ETH)
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" "getBalance" (param i32 i32 i32))
5 (export "a" memory)
6 (export "main" 0)
7 (func
8 (call_import $balance (i32.const 0) (i32.const 0) (i32.const 1))
9 )
10
11 (export "1" 1)
12 (func
13 (block
14 (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x0500000000000000))
15 (return)
16 )
17 (unreachable)
18 )
19 )
20)
21
22

Built with git-ssb-web