Skip to content

Commit

Permalink
added NewRedundantRelayDecorator
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 22, 2022
1 parent 12be53a commit 29ac793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/ante"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
transfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types"
ibcante "github.com/cosmos/ibc-go/v5/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v5/modules/core/keeper"
)

type HandlerOptions struct {
ante.HandlerOptions
tokenfactorykeeper tokenfactory.Keeper
IBCKeeper *ibckeeper.Keeper
}

type IsPausedDecorator struct {
Expand Down Expand Up @@ -114,6 +117,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
ante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer),
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
ibcante.NewRedundantRelayDecorator(options.IBCKeeper),
}
return sdk.ChainAnteDecorators(anteDecorators...), nil

Expand Down

0 comments on commit 29ac793

Please sign in to comment.