core/state: remove unuseful code #23092 (#1207)

This commit is contained in:
Daniel Liu 2025-07-11 10:09:56 +08:00 committed by GitHub
parent f98fbc7dc7
commit 906f07736e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -563,7 +563,6 @@ func (s *StateDB) GetOrNewStateObject(addr common.Address) *stateObject {
func (s *StateDB) createObject(addr common.Address) (newobj, prev *stateObject) {
prev = s.getDeletedStateObject(addr) // Note, prev might have been deleted, we need that!
newobj = newObject(s, addr, Account{})
newobj.setNonce(0) // sets the object to dirty
if prev == nil {
s.journal.append(createObjectChange{account: &addr})
} else {