diff --git a/ante/evm/08_gas_consume.go b/ante/evm/08_gas_consume.go index da8a19a..ff6d874 100644 --- a/ante/evm/08_gas_consume.go +++ b/ante/evm/08_gas_consume.go @@ -62,7 +62,6 @@ func ConsumeFeesAndEmitEvent( } // deductFee checks if the fee payer has enough funds to pay for the fees and deducts them. -// If the spendable balance is not enough, it tries to claim enough staking rewards to cover the fees. func deductFees( ctx sdktypes.Context, evmKeeper anteinterfaces.EVMKeeper, diff --git a/ante/evm/mono_decorator.go b/ante/evm/mono_decorator.go index cef09be..618ff42 100644 --- a/ante/evm/mono_decorator.go +++ b/ante/evm/mono_decorator.go @@ -202,7 +202,7 @@ func (md MonoDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne decUtils.TxFee = txFee decUtils.TxGasLimit += gas - // 10. increment sequence + // 9. increment sequence acc := md.accountKeeper.GetAccount(ctx, from) if acc == nil { // safety check: shouldn't happen @@ -214,12 +214,12 @@ func (md MonoDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne return ctx, err } - // 11. gas wanted + // 10. gas wanted if err := CheckGasWanted(ctx, md.feeMarketKeeper, tx, decUtils.Rules.IsLondon); err != nil { return ctx, err } - // 12. emit events + // 11. emit events txIdx := uint64(i) //nolint:gosec // G115 EmitTxHashEvent(ctx, ethMsg, decUtils.BlockTxIndex, txIdx) }