From 101a64f8b5afd553344cc9f172af38c76748028a Mon Sep 17 00:00:00 2001 From: qshuai Date: Thu, 13 Dec 2018 18:09:00 +0800 Subject: [PATCH] naming: Avoid using golang keyword as variable name --- 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) } }