diff options
author | Shuai Qi <qishuai231@gmail.com> | 2018-12-14 21:55:03 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-12-14 21:55:03 +0800 |
commit | fe26b2f366693bfd2cff71e81fa5512977affd7b (patch) | |
tree | 1d94a8ee340b6c0c62636faed5d55e7134fb309b /core/state | |
parent | 9940d93a43bab1f060e8fbfadff510c3298f2726 (diff) | |
download | dexon-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.gz dexon-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.zst dexon-fe26b2f366693bfd2cff71e81fa5512977affd7b.zip |
core/state: rename 'new' variable (#18301)
Diffstat (limited to 'core/state')
-rw-r--r-- | core/state/statedb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index 76e67d839..2230b10ef 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) } } |