mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
Update reader.go
This commit is contained in:
parent
d11e9c0b51
commit
1bfb8f0a66
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ func (r *reader) Account(hash common.Hash) (*types.SlimAccount, error) {
|
||||||
}
|
}
|
||||||
account := new(types.SlimAccount)
|
account := new(types.SlimAccount)
|
||||||
if err := rlp.DecodeBytes(blob, account); err != nil {
|
if err := rlp.DecodeBytes(blob, account); err != nil {
|
||||||
panic(err)
|
return nil, fmt.Errorf("failed to decode account: %w", err)
|
||||||
}
|
}
|
||||||
return account, nil
|
return account, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue