Skip to content

Commit

Permalink
chore: remove manual call to OnNonceChange after evm.Call
Browse files Browse the repository at this point in the history
  • Loading branch information
arrivets committed Oct 23, 2024
1 parent 5be6f4c commit ffcfd44
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions x/evm/keeper/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffcfd44

Please sign in to comment.