all: regenerate codecs with gencodec commit 90983d99de (#15830)
Fixes #15777 because null is now allowed for hexutil.Bytes.
This commit is contained in:
committed by
Péter Szilágyi
parent
5c2f1e0014
commit
9d06026c19
@ -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)
|
||||
|
Reference in New Issue
Block a user