core/state: fix bidirectional storage validation in StateDB test

This commit is contained in:
Bilog WEB3 2025-11-13 11:00:04 +01:00 committed by GitHub
parent 488d987fc4
commit bcdaab22c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -615,7 +615,7 @@ func (test *snapshotTest) checkEqual(state, checkstate *StateDB) error {
return checkeq("GetState("+key.Hex()+")", checkstate.GetState(addr, key), value)
})
forEachStorage(checkstate, addr, func(key, value common.Hash) bool {
return checkeq("GetState("+key.Hex()+")", checkstate.GetState(addr, key), value)
return checkeq("GetState("+key.Hex()+")", state.GetState(addr, key), value)
})
other := checkstate.getStateObject(addr)
// Check dirty storage which is not in trie