aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gen_btheader.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-01-08 21:13:22 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-08 21:13:22 +0800
commit9d06026c1991fdd8f034ce194fa20a0740c21810 (patch)
tree8625b7c087dfcd8cf8f087113c7242cf0d7639cd /tests/gen_btheader.go
parent5c2f1e00148f16655d3fb63b93920b1108165c56 (diff)
downloadgo-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.tar
go-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.gz
go-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.bz2
go-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.lz
go-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.xz
go-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.zst
go-tangerine-9d06026c1991fdd8f034ce194fa20a0740c21810.zip
all: regenerate codecs with gencodec commit 90983d99de (#15830)
Fixes #15777 because null is now allowed for hexutil.Bytes.
Diffstat (limited to 'tests/gen_btheader.go')
-rw-r--r--tests/gen_btheader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gen_btheader.go b/tests/gen_btheader.go
index 1e25765c4..5cfd4bd0a 100644
--- a/tests/gen_btheader.go
+++ b/tests/gen_btheader.go
@@ -66,7 +66,7 @@ func (b *btHeader) UnmarshalJSON(input []byte) error {
StateRoot *common.Hash
TransactionsTrie *common.Hash
UncleHash *common.Hash
- ExtraData hexutil.Bytes
+ ExtraData *hexutil.Bytes
Difficulty *math.HexOrDecimal256
GasLimit *math.HexOrDecimal64
GasUsed *math.HexOrDecimal64
@@ -110,7 +110,7 @@ func (b *btHeader) UnmarshalJSON(input []byte) error {
b.UncleHash = *dec.UncleHash
}
if dec.ExtraData != nil {
- b.ExtraData = dec.ExtraData
+ b.ExtraData = *dec.ExtraData
}
if dec.Difficulty != nil {
b.Difficulty = (*big.Int)(dec.Difficulty)