git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 88d61c8591d4cdf5ba2022f4eeaa1af8e06891a5

Files: 88d61c8591d4cdf5ba2022f4eeaa1af8e06891a5 / tests / interface / coinbase.wast

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

Built with git-ssb-web