We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80ef725 + 431c3ca commit d934507Copy full SHA for d934507
1 file changed
core/state/state_object.go
@@ -172,8 +172,11 @@ func (s *stateObject) getPrefetchedTrie() Trie {
172
173
// GetState retrieves a value from the account storage trie.
174
func (s *stateObject) GetState(key common.Hash) common.Hash {
175
- value, _ := s.getState(key)
176
- return value
+ value, dirty := s.dirtyStorage[key]
+ if dirty {
177
+ return value
178
+ }
179
+ return s.GetCommittedState(key)
180
}
181
182
// getState retrieves a value associated with the given storage key, along with
0 commit comments