We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3778f1b + 25ed5fe commit e859f36Copy full SHA for e859f36
core/state/state_object.go
@@ -152,6 +152,9 @@ func (self *StateObject) Update() {
152
}
153
154
func (c *StateObject) AddBalance(amount *big.Int) {
155
+ if amount.Cmp(common.Big0) == 0 {
156
+ return
157
+ }
158
c.SetBalance(new(big.Int).Add(c.balance, amount))
159
160
if glog.V(logger.Core) {
@@ -160,6 +163,9 @@ func (c *StateObject) AddBalance(amount *big.Int) {
163
161
164
162
165
func (c *StateObject) SubBalance(amount *big.Int) {
166
167
168
169
c.SetBalance(new(big.Int).Sub(c.balance, amount))
170
171
0 commit comments