Skip to content

Commit

Permalink
re-wire
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 15, 2023
1 parent f98ba34 commit cb00ab4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion x/feemarket/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
options.BaseOptions.BankKeeper,
options.BaseOptions.FeegrantKeeper,
options.FeeMarketKeeper,
TxFeeChecker(options.BaseOptions.TxFeeChecker),
),
authante.NewSetPubKeyDecorator(options.BaseOptions.AccountKeeper), // SetPubKeyDecorator must be called before all signature verification decorators
authante.NewValidateSigCountDecorator(options.BaseOptions.AccountKeeper),
Expand Down
2 changes: 1 addition & 1 deletion x/feemarket/ante/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ type BankKeeper interface {
// FeeMarketKeeper defines the expected feemarket keeper.
type FeeMarketKeeper interface {
GetState(ctx sdk.Context) (feemarkettypes.State, error)
GetMinGasPrices(ctx sdk.Context) (sdk.DecCoins, error)
GetMinGasPrices(ctx sdk.Context) (sdk.Coins, error)
}
5 changes: 3 additions & 2 deletions x/feemarket/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ func (dfd FeeMarketDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bo
return ctx, errorsmod.Wrapf(err, "unable to get fee market state")
}

ctx = ctx.WithMinGasPrices(minGasPrice)
minGasPricesDec := sdk.NewDecCoinsFromCoins(minGasPrices...)
ctx = ctx.WithMinGasPrices(minGasPricesDec)

fee := feeTx.GetFee()
if !simulate {
fee, priority, err = checkTxFees(ctx, minGasPrice, tx)
fee, priority, err = checkTxFees(ctx, minGasPricesDec, tx)
if err != nil {
return ctx, err
}
Expand Down

0 comments on commit cb00ab4

Please sign in to comment.