Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteHerrmann committed Sep 27, 2024
1 parent 4216f73 commit b131d98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion ante/evm/08_gas_consume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions ante/evm/mono_decorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
Expand Down

0 comments on commit b131d98

Please sign in to comment.