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

pull/18313/head
Shuai Qi 6 years ago committed by Felix Lange
parent 9940d93a43
commit fe26b2f366
  1. 4
      core/state/statedb.go

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

Loading…
Cancel
Save