git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: bd0309940892e56fdef9d841f83777c9038348f8

Files: bd0309940892e56fdef9d841f83777c9038348f8 / tests / interface / balance.wast

674 bytesRaw
1;; address of 5d48c1018904a172886829bbbd9c6f4a2d06c47b has a balance of 0x056bc75e2d63100000 (100 ETH)
2(module
3 (import "ethereum" "getBalance" (func $balance (param i32 i32 i32)))
4 (memory 1 )
5 (data (i32.const 0) "\5d\48\c1\01\89\04\a1\72\88\68\29\bb\bd\9c\6f\4a\2d\06\c4\7b")
6 (export "memory" (memory 0))
7 (export "main" (func $main))
8
9 (table
10 (export "callback")
11 anyfunc
12 (elem
13 $callback
14 )
15 )
16
17 (func $main
18 (call $balance (i32.const 0) (i32.const 0) (i32.const 0))
19 )
20
21 (func $callback
22 (block
23 (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x0500000000000000))
24 (return)
25 )
26 (unreachable)
27 )
28 )
29)
30
31

Built with git-ssb-web