From 6f08b3a7254e97c7f3b64d3a26c1fba3bd116982 Mon Sep 17 00:00:00 2001 From: Sina M <1591639+s1na@users.noreply.github.com> Date: Tue, 2 Sep 2025 12:44:09 +0200 Subject: [PATCH] core/tracing: fix selfdestruct 6780 balance change emit (#32526) Noticed in #32376 --- core/state/statedb_hooked.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/statedb_hooked.go b/core/state/statedb_hooked.go index 3d1ef15031..556a3e6c49 100644 --- a/core/state/statedb_hooked.go +++ b/core/state/statedb_hooked.go @@ -242,7 +242,7 @@ func (s *hookedStateDB) SelfDestruct6780(address common.Address) (uint256.Int, b prev, changed := s.inner.SelfDestruct6780(address) - if s.hooks.OnBalanceChange != nil && changed && !prev.IsZero() { + if s.hooks.OnBalanceChange != nil && !prev.IsZero() { s.hooks.OnBalanceChange(address, prev.ToBig(), new(big.Int), tracing.BalanceDecreaseSelfdestruct) }