From 0ccc301b3233f53089a135dc3edd73e2456df8c2 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Thu, 24 Oct 2024 10:35:18 -0700 Subject: [PATCH] use uint256.NewInt(0) for clarity --- x/evm/statedb/statedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/statedb/statedb.go b/x/evm/statedb/statedb.go index 4ff5551f..3fa7a47f 100644 --- a/x/evm/statedb/statedb.go +++ b/x/evm/statedb/statedb.go @@ -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) {