Update statedb.go

This commit is contained in:
Klimov Sergey 2025-05-12 15:04:31 +08:00 committed by GitHub
parent bb4b0e77e4
commit 035ecafc22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}