From bf2597d07e39546b06b6d1213c6fb0dad19c7359 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Mon, 15 Apr 2024 16:47:17 +0800 Subject: [PATCH] core/state: fix journal --- core/state/journal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/journal.go b/core/state/journal.go index 939e66afa742..9b2977b5934c 100644 --- a/core/state/journal.go +++ b/core/state/journal.go @@ -172,7 +172,7 @@ func (ch createObjectChange) revert(s *StateDB) { } func (ch createObjectChange) dirtied() *common.Address { - return nil + return ch.account } func (ch createObjectChange) copy() journalEntry { @@ -186,7 +186,7 @@ func (ch createContractChange) revert(s *StateDB) { } func (ch createContractChange) dirtied() *common.Address { - return &ch.account + return nil } func (ch createContractChange) copy() journalEntry {