From e6982a76da5dd2d75644c4385c70898fead5a660 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 28 Jan 2026 16:11:45 +0800 Subject: [PATCH] core/state: count code update with 7702 clear --- 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 35cb8164ce..3d329bab64 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -948,7 +948,7 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash { s.AccountUpdated += 1 // Count code writes post-Finalise so reverted CREATEs are excluded. - if obj.dirtyCode && len(obj.code) > 0 { + if obj.dirtyCode { s.CodeUpdated += 1 s.CodeUpdateBytes += len(obj.code) }