From 5a1923dcbb0028e4c3dd1d2767982fa7173f6ce4 Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Tue, 9 May 2023 09:32:07 -0600 Subject: [PATCH] Fix account storage/code retention. --- core/state/statedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 0a8ab177d453..706d97d2d644 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -857,7 +857,7 @@ func (s *StateDB) Finalise(deleteEmptyObjects bool) { // Thus, we can safely ignore it here continue } - if obj.suicided || (deleteEmptyObjects && obj.empty()) || (obj.created && obj.sendalled) { + if (obj.suicided && obj.created) || (deleteEmptyObjects && obj.empty()) || (obj.created && obj.sendalled) { obj.deleted = true // We need to maintain account deletions explicitly (will remain