Skip to content

Commit

Permalink
feat: remove gov ante decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Dec 18, 2024
1 parent 163b4cb commit ba5dff2
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 722 deletions.
8 changes: 3 additions & 5 deletions ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type HandlerOptions struct {
AccountKeeper feemarketante.AccountKeeper
BankKeeper feemarketante.BankKeeper
Codec codec.BinaryCodec
IBCkeeper *ibckeeper.Keeper
IBCKeeper *ibckeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
FeeMarketKeeper *feemarketkeeper.Keeper
TxFeeChecker ante.TxFeeChecker
Expand All @@ -57,7 +57,7 @@ func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error) {
if opts.SignModeHandler == nil {
return nil, errorsmod.Wrap(milkywayerrors.ErrLogic, "sign mode handler is required for AnteHandler")
}
if opts.IBCkeeper == nil {
if opts.IBCKeeper == nil {
return nil, errorsmod.Wrap(milkywayerrors.ErrLogic, "IBC keeper is required for AnteHandler")
}
if opts.FeeMarketKeeper == nil {
Expand All @@ -82,14 +82,12 @@ func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error) {
ante.NewTxTimeoutHeightDecorator(),
ante.NewValidateMemoDecorator(opts.AccountKeeper),
ante.NewConsumeGasForTxSizeDecorator(opts.AccountKeeper),
NewGovVoteDecorator(opts.Codec, opts.StakingKeeper),
NewGovExpeditedProposalsDecorator(opts.Codec),
ante.NewSetPubKeyDecorator(opts.AccountKeeper), // SetPubKeyDecorator must be called before all signature verification decorators
ante.NewValidateSigCountDecorator(opts.AccountKeeper),
ante.NewSigGasConsumeDecorator(opts.AccountKeeper, sigGasConsumer),
ante.NewSigVerificationDecorator(opts.AccountKeeper, opts.SignModeHandler),
ante.NewIncrementSequenceDecorator(opts.AccountKeeper),
ibcante.NewRedundantRelayDecorator(opts.IBCkeeper),
ibcante.NewRedundantRelayDecorator(opts.IBCKeeper),
}

if UseFeeMarketDecorator {
Expand Down
80 changes: 0 additions & 80 deletions ante/gov_expedited_ante.go

This file was deleted.

218 changes: 0 additions & 218 deletions ante/gov_expedited_ante_test.go

This file was deleted.

Loading

0 comments on commit ba5dff2

Please sign in to comment.