fix Incorrect description of function behavior

This commit is contained in:
Klimov Sergey 2025-05-12 04:59:37 +08:00 committed by GitHub
parent fa86416ce9
commit 197b404307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -298,7 +298,6 @@ func (s *StateDB) SubRefund(gas uint64) {
} }
// Exist reports whether the given account address exists in the state. // Exist reports whether the given account address exists in the state.
// Notably this also returns true for self-destructed accounts.
func (s *StateDB) Exist(addr common.Address) bool { func (s *StateDB) Exist(addr common.Address) bool {
return s.getStateObject(addr) != nil return s.getStateObject(addr) != nil
} }