diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/block_test_util.go | 4 | ||||
-rw-r--r-- | tests/gen_btheader.go | 4 | ||||
-rw-r--r-- | tests/gen_tttransaction.go | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go index e2d1a0b43..53a5f7fcc 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -86,8 +86,8 @@ type btHeaderMarshaling struct { ExtraData hexutil.Bytes Number *math.HexOrDecimal256 Difficulty *math.HexOrDecimal256 - GasLimit *math.HexOrDecimal64 - GasUsed *math.HexOrDecimal64 + GasLimit math.HexOrDecimal64 + GasUsed math.HexOrDecimal64 Timestamp *math.HexOrDecimal256 } diff --git a/tests/gen_btheader.go b/tests/gen_btheader.go index 1be659ecb..1e25765c4 100644 --- a/tests/gen_btheader.go +++ b/tests/gen_btheader.go @@ -47,8 +47,8 @@ func (b btHeader) MarshalJSON() ([]byte, error) { enc.UncleHash = b.UncleHash enc.ExtraData = b.ExtraData enc.Difficulty = (*math.HexOrDecimal256)(b.Difficulty) - enc.GasLimit = (math.HexOrDecimal64)(b.GasLimit) - enc.GasUsed = (math.HexOrDecimal64)(b.GasUsed) + enc.GasLimit = math.HexOrDecimal64(b.GasLimit) + enc.GasUsed = math.HexOrDecimal64(b.GasUsed) enc.Timestamp = (*math.HexOrDecimal256)(b.Timestamp) return json.Marshal(&enc) } diff --git a/tests/gen_tttransaction.go b/tests/gen_tttransaction.go index 840bdfdd8..dfdb042fc 100644 --- a/tests/gen_tttransaction.go +++ b/tests/gen_tttransaction.go @@ -28,7 +28,7 @@ func (t ttTransaction) MarshalJSON() ([]byte, error) { } var enc ttTransaction enc.Data = t.Data - enc.GasLimit = (math.HexOrDecimal64)(t.GasLimit) + enc.GasLimit = math.HexOrDecimal64(t.GasLimit) enc.GasPrice = (*math.HexOrDecimal256)(t.GasPrice) enc.Nonce = math.HexOrDecimal64(t.Nonce) enc.Value = (*math.HexOrDecimal256)(t.Value) |