core/state: rename new variable #18301 (#1178)

This commit is contained in:
Daniel Liu 2025-07-02 14:13:47 +08:00 committed by GitHub
parent 957e9d8d05
commit b4f4b95634
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -589,9 +589,9 @@ func (s *StateDB) createObject(addr common.Address) (newobj, prev *stateObject)
//
// Carrying over the balance ensures that Ether doesn't disappear.
func (s *StateDB) CreateAccount(addr common.Address) {
new, prev := s.createObject(addr)
newObj, prev := s.createObject(addr)
if prev != nil {
new.setBalance(prev.data.Balance)
newObj.setBalance(prev.data.Balance)
}
}