Unverified Commit 66ee9422 authored by Sina Mahmoodi's avatar Sina Mahmoodi Committed by GitHub

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

* clique: fix block number unmarshal

* clique: rename
parent 8151dd67
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment