Skip to content

Commit d121c27

Browse files
authored
core/state: fix incorrect description of function behavior (#31809)
1 parent 098cc7e commit d121c27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/state/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func (s *StateDB) SubRefund(gas uint64) {
298298
}
299299

300300
// Exist reports whether the given account address exists in the state.
301-
// Notably this also returns true for self-destructed accounts.
301+
// Notably this also returns true for self-destructed accounts within the current transaction.
302302
func (s *StateDB) Exist(addr common.Address) bool {
303303
return s.getStateObject(addr) != nil
304304
}

core/vm/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type StateDB interface {
6969
SelfDestruct6780(common.Address) (uint256.Int, bool)
7070

7171
// Exist reports whether the given account exists in state.
72-
// Notably this should also return true for self-destructed accounts.
72+
// Notably this also returns true for self-destructed accounts within the current transaction.
7373
Exist(common.Address) bool
7474
// Empty returns whether the given account is empty. Empty
7575
// is defined according to EIP161 (balance = nonce = code = 0).

0 commit comments

Comments
 (0)