Skip to content

Commit

Permalink
use uint256.NewInt(0) for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Oct 24, 2024
1 parent d0079a8 commit 0ccc301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/evm/statedb/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (s *StateDB) SelfDestruct(addr common.Address) {
prevbalance: new(uint256.Int).Set(stateObject.Balance()),
})
stateObject.markSuicided()
stateObject.account.Balance = new(uint256.Int)
stateObject.account.Balance = uint256.NewInt(0)
}

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

0 comments on commit 0ccc301

Please sign in to comment.