From 5d5962a1aee46da4e301bcfb6cfe8758453b0997 Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 26 Feb 2026 08:45:18 +0800 Subject: [PATCH] track the empty slot as origin value --- core/state/state_object.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/state/state_object.go b/core/state/state_object.go index 76cfb3cb00..400ce5e2b2 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -203,6 +203,7 @@ func (s *stateObject) GetCommittedState(key common.Hash) common.Hash { // have been handles via pendingStorage above. // 2) we don't have new values, and can deliver empty response back if _, destructed := s.db.stateObjectsDestruct[s.address]; destructed { + s.originStorage[key] = common.Hash{} // track the empty slot as origin value return common.Hash{} } // If no live objects are available, attempt to use snapshots