git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 3c4a2d1f6298f7d8b4e012acbb8edd52f1bf5203

Files: 3c4a2d1f6298f7d8b4e012acbb8edd52f1bf5203 / tests / interface / coinbase.wast

434 bytesRaw
1;; starts with a coinbase of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
2(module
3 (memory 1)
4
5 (import $coinbase "ethereum" "getBlockCoinbase" (param i32))
6 (export "main" 0)
7 (export "a" memory)
8 (func
9 (block
10 ;; loads the coinbase into memory
11 (call_import $coinbase (i32.const 0))
12 (if (i64.eq (i64.load (i32.const 0)) (i64.const 0x72a1048901c1485d))
13 (return)
14 )
15 (unreachable)
16 )
17 )
18)
19

Built with git-ssb-web