From 23ef9c6ca815ac52bcf2ee7c06975f7ff6cd1606 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Mon, 13 Nov 2023 19:24:27 +0300 Subject: [PATCH] minor fix --- core/state/statedb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 9e58f01455..dcb365efa4 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -433,7 +433,8 @@ func (s *StateDB) SetStorage(addr common.Address, storage map[common.Hash]common } stateObject := s.GetOrNewStateObject(addr) // If object was already in memory, it might have cached - // storage slots. These should be cleared. + // storage slots. These might not be + // overridden in the new storage set and should be cleared. stateObject.clearStorageCache() for k, v := range storage { stateObject.SetState(k, v)