Skip to content

Commit 6f08b3a

Browse files
authored
core/tracing: fix selfdestruct 6780 balance change emit (ethereum#32526)
Noticed in ethereum#32376
1 parent c36f7be commit 6f08b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/statedb_hooked.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (s *hookedStateDB) SelfDestruct6780(address common.Address) (uint256.Int, b
242242

243243
prev, changed := s.inner.SelfDestruct6780(address)
244244

245-
if s.hooks.OnBalanceChange != nil && changed && !prev.IsZero() {
245+
if s.hooks.OnBalanceChange != nil && !prev.IsZero() {
246246
s.hooks.OnBalanceChange(address, prev.ToBig(), new(big.Int), tracing.BalanceDecreaseSelfdestruct)
247247
}
248248

0 commit comments

Comments
 (0)