Skip to content

Commit

Permalink
move the decorator below the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Apr 26, 2024
1 parent 7bf3cae commit e791a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ante/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func cosmosDecorators(options HandlerOptions, extensionChecker authante.Extensio
ethante.NewAuthzLimiterDecorator(options.DisabledAuthzMsgs),
ante.NewSetUpContextDecorator(),
ante.NewExtensionOptionsDecorator(extensionChecker),
ante.NewValidateBasicDecorator(),
ante.NewTxTimeoutHeightDecorator(),
NewPermissionedURLsDecorator(
func(ctx sdk.Context, accAddr sdk.AccAddress) bool {
return options.hasPermission(ctx, accAddr, vestingtypes.ModuleName)
Expand All @@ -75,8 +77,6 @@ func cosmosDecorators(options HandlerOptions, extensionChecker authante.Extensio
sdk.MsgTypeURL(&vestingtypes.MsgCreatePeriodicVestingAccount{}),
sdk.MsgTypeURL(&vestingtypes.MsgCreatePermanentLockedAccount{}),
}),
ante.NewValidateBasicDecorator(),
ante.NewTxTimeoutHeightDecorator(),
ethante.NewMinGasPriceDecorator(options.FeeMarketKeeper, options.EvmKeeper),
ante.NewValidateMemoDecorator(options.AccountKeeper),
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
Expand Down

0 comments on commit e791a71

Please sign in to comment.