Skip to content

Commit

Permalink
chore(feeDeduct): use default minGasPrice from validator
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnv committed Sep 13, 2023
1 parent 1349d2d commit f247816
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func (options HandlerOptions) Validate() error {
if options.EvmKeeper == nil {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "evm keeper is required for AnteHandler")
}
if options.TxFeeChecker == nil {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "tx fee checker is required for AnteHandler")
}
return nil
}

Expand Down
3 changes: 1 addition & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
ibctestingtypes "github.com/cosmos/ibc-go/v6/testing/types"
evmante "github.com/evmos/evmos/v12/app/ante/evm"
"github.com/evmos/evmos/v12/x/erc20"
erc20client "github.com/evmos/evmos/v12/x/erc20/client"
erc20keeper "github.com/evmos/evmos/v12/x/erc20/keeper"
Expand Down Expand Up @@ -724,7 +723,7 @@ func NewAstraApp(
SigGasConsumer: SigVerificationGasConsumer,
Cdc: appCodec,
MaxTxGasWanted: maxGasWanted,
TxFeeChecker: evmante.NewDynamicFeeChecker(app.EvmKeeper),
TxFeeChecker: nil,
}

if err := options.Validate(); err != nil {
Expand Down

0 comments on commit f247816

Please sign in to comment.