core/state: add comment

This commit is contained in:
Gary Rong 2024-09-05 16:18:46 +08:00
parent abd140b52b
commit 6d79e5ace6

View file

@ -117,6 +117,8 @@ func (r *stateReader) Storage(addr common.Address, key common.Hash) (common.Hash
if len(ret) == 0 { if len(ret) == 0 {
return common.Hash{}, nil return common.Hash{}, nil
} }
// Perform the rlp-decode as the slot value is RLP-encoded in the state
// snapshot.
_, content, _, err := rlp.Split(ret) _, content, _, err := rlp.Split(ret)
if err != nil { if err != nil {
return common.Hash{}, err return common.Hash{}, err