From fe26b2f366693bfd2cff71e81fa5512977affd7b Mon Sep 17 00:00:00 2001 From: Shuai Qi Date: Fri, 14 Dec 2018 21:55:03 +0800 Subject: [PATCH] core/state: rename 'new' variable (#18301) --- core/state/statedb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 76e67d839d..2230b10ef0 100644 --- a/core/state/statedb.go +++ b/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) } }