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

This commit is contained in:
Shuai Qi 2018-12-14 21:55:03 +08:00 committed by Felix Lange
parent 9940d93a43
commit fe26b2f366
1 changed files with 2 additions and 2 deletions

View File

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