Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/state: state reader abstraction #29761

Merged
merged 8 commits into from
Sep 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
core/state: add comment
  • Loading branch information
rjl493456442 committed Sep 5, 2024
commit 6d79e5ace6ef8b5a6f68b760cbd7acabb919e300
2 changes: 2 additions & 0 deletions core/state/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ func (r *stateReader) Storage(addr common.Address, key common.Hash) (common.Hash
if len(ret) == 0 {
return common.Hash{}, nil
}
// Perform the rlp-decode as the slot value is RLP-encoded in the state
// snapshot.
_, content, _, err := rlp.Split(ret)
rjl493456442 marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
return common.Hash{}, err
Expand Down