consensus/clique: fix block number unmarshal (#23961)

* clique: fix block number unmarshal

* clique: rename
This commit is contained in:
Sina Mahmoodi
2021-11-24 14:12:26 +01:00
committed by GitHub
parent 8151dd67e1
commit 66ee9422f5

View File

@ -196,7 +196,11 @@ func (sb *blockNumberOrHashOrRLP) UnmarshalJSON(data []byte) error {
if err := json.Unmarshal(data, &input); err != nil {
return err
}
sb.RLP = hexutil.MustDecode(input)
blob, err := hexutil.Decode(input)
if err != nil {
return err
}
sb.RLP = blob
return nil
}