Skip to content

Commit

Permalink
core/state: rename 'new' variable (#18301)
Browse files Browse the repository at this point in the history
  • Loading branch information
qshuai authored and fjl committed Dec 14, 2018
1 parent 9940d93 commit fe26b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit fe26b2f

Please sign in to comment.