git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 3a9b5f4c35935e1878a5aa201e5d3b00844c7aac

Tests: include coinbase

Alex Beregszaszi committed on 8/23/2016, 1:14:33 AM
Parent: f29484612ffe0505b3f6b6ee28cfa1b2cc34c148

Files changed

tests/interface/coinbase.jsonadded
tests/interface/coinbase.wastadded
tests/interface/coinbase.jsonView
@@ -1,0 +1,3 @@
1+{
2+ "coinbase": "0x5d48c1018904a172886829bbbd9c6f4a2d06c47b"
3+}
tests/interface/coinbase.wastView
@@ -1,0 +1,18 @@
1+;; starts with a coinbase of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
2+(module
3+ (memory 1)
4+
5+ (import $coinbase "ethereum" "getBlockCoinbase" (param i32))
6+ (export "test" 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)) ;; big endian
13+ (return)
14+ )
15+ (unreachable)
16+ )
17+ )
18+)

Built with git-ssb-web