Skip to content

Commit

Permalink
fix createObject prev
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Sep 27, 2024
1 parent f8ead8f commit f45c4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ func (s *StateDB) createObject(addr common.Address) (newobj *stateObject, prev *

newobj.created = true
s.setStateObject(newobj)
if prev != nil && prev.deleted {
if prev != nil && !prev.deleted {
return newobj, prev
}
return newobj, nil
Expand Down

0 comments on commit f45c4d8

Please sign in to comment.