diff --git a/core/state/statedb.go b/core/state/statedb.go index ee00711d5d..2453d67f3e 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -298,6 +298,7 @@ func (s *StateDB) SubRefund(gas uint64) { } // Exist reports whether the given account address exists in the state. +// Notably this also returns true for self-destructed accounts within the current transaction. func (s *StateDB) Exist(addr common.Address) bool { return s.getStateObject(addr) != nil }