aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-04-22 21:21:02 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-04-23 05:16:19 +0800
commit9834f855faec1b80f78722db11e5a883d83ff05c (patch)
treeca97140533b00b81bf4dbe1561f97cf8eacdf594
parent24de35ef0983a6f3f6dd16235d92f33c900096aa (diff)
downloaddexon-9834f855faec1b80f78722db11e5a883d83ff05c.tar
dexon-9834f855faec1b80f78722db11e5a883d83ff05c.tar.gz
dexon-9834f855faec1b80f78722db11e5a883d83ff05c.tar.bz2
dexon-9834f855faec1b80f78722db11e5a883d83ff05c.tar.lz
dexon-9834f855faec1b80f78722db11e5a883d83ff05c.tar.xz
dexon-9834f855faec1b80f78722db11e5a883d83ff05c.tar.zst
dexon-9834f855faec1b80f78722db11e5a883d83ff05c.zip
Finally, glorious HEX
-rw-r--r--tests/block_test_util.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go
index ed2a9fca2..df651d24e 100644
--- a/tests/block_test_util.go
+++ b/tests/block_test_util.go
@@ -226,10 +226,10 @@ func mustConvertHeader(in btHeader) *types.Header {
UncleHash: mustConvertHash(in.UncleHash),
ParentHash: mustConvertHash(in.ParentHash),
Extra: mustConvertBytes(in.ExtraData),
- GasUsed: mustConvertBigInt(in.GasUsed, 10),
- GasLimit: mustConvertBigInt(in.GasLimit, 10),
- Difficulty: mustConvertBigInt(in.Difficulty, 10),
- Time: mustConvertUint(in.Timestamp, 10),
+ GasUsed: mustConvertBigInt(in.GasUsed, 16),
+ GasLimit: mustConvertBigInt(in.GasLimit, 16),
+ Difficulty: mustConvertBigInt(in.Difficulty, 16),
+ Time: mustConvertUint(in.Timestamp, 16),
}
// XXX cheats? :-)
header.SetNonce(mustConvertUint(in.Nonce, 16))