Apply suggestion from @jwasinger

This commit is contained in:
jwasinger 2026-01-20 15:21:49 +09:00 committed by GitHub
parent 54ab5b20a4
commit 5407ce9278
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,7 +237,8 @@ func (s *hookedStateDB) Finalise(deleteEmptyObjects bool) {
}
// Collect all self-destructed addresses first, then sort them to ensure
// deterministic ordering when emitting hooks.
// that state change hooks will be invoked in deterministic
// order when the accounts are deleted below
var selfDestructedAddrs []common.Address
for addr := range s.inner.journal.dirties {
obj := s.inner.stateObjects[addr]