aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorShuai Qi <qishuai231@gmail.com>2018-12-14 21:55:03 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-12-14 21:55:03 +0800
commitfe26b2f366693bfd2cff71e81fa5512977affd7b (patch)
tree1d94a8ee340b6c0c62636faed5d55e7134fb309b /core
parent9940d93a43bab1f060e8fbfadff510c3298f2726 (diff)
downloadgo-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar
go-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.gz
go-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.bz2
go-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.lz
go-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.xz
go-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.tar.zst
go-tangerine-fe26b2f366693bfd2cff71e81fa5512977affd7b.zip
core/state: rename 'new' variable (#18301)
Diffstat (limited to 'core')
-rw-r--r--core/state/statedb.go4
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)
}
}