From ffcfd44373b0d312726c591a6b2baaebb972aff8 Mon Sep 17 00:00:00 2001 From: Martin Arrivets Date: Wed, 23 Oct 2024 17:07:21 +0200 Subject: [PATCH] chore: remove manual call to OnNonceChange after evm.Call --- x/evm/keeper/state_transition.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 7f0850a079..977fe4bb00 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -426,12 +426,6 @@ func (k *Keeper) ApplyMessageWithConfig( stateDB.SetNonce(sender.Address(), msg.Nonce+1) } else { ret, leftoverGas, vmErr = evm.Call(sender, *msg.To, msg.Data, leftoverGas, uint256.MustFromBig(msg.Value)) - - // if they do not want to make the nonce set to the statedb or do we want to manually call the onNonceChange hook - //stateDB.SetNonce(sender.Address(), msg.Nonce+1) - if cfg.Tracer != nil && cfg.Tracer.OnNonceChange != nil { - cfg.Tracer.OnNonceChange(sender.Address(), msg.Nonce, msg.Nonce+1) - } } refundQuotient := params.RefundQuotient