Skip to content

Commit 0ccc301

Browse files
committed
use uint256.NewInt(0) for clarity
1 parent d0079a8 commit 0ccc301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/evm/statedb/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func (s *StateDB) SelfDestruct(addr common.Address) {
462462
prevbalance: new(uint256.Int).Set(stateObject.Balance()),
463463
})
464464
stateObject.markSuicided()
465-
stateObject.account.Balance = new(uint256.Int)
465+
stateObject.account.Balance = uint256.NewInt(0)
466466
}
467467

468468
func (s *StateDB) Selfdestruct6780(addr common.Address) {

0 commit comments

Comments
 (0)