1
1
package app
2
2
3
3
import (
4
- ibcante "github.com/cosmos/ibc-go/v7 /modules/core/ante"
5
- ibckeeper "github.com/cosmos/ibc-go/v7 /modules/core/keeper"
4
+ ibcante "github.com/cosmos/ibc-go/v8 /modules/core/ante"
5
+ ibckeeper "github.com/cosmos/ibc-go/v8 /modules/core/keeper"
6
6
7
- sdkerrors "cosmossdk.io/errors"
7
+ "cosmossdk.io/errors"
8
8
9
9
sdk "github.com/cosmos/cosmos-sdk/types"
10
- errorstypes "github.com/cosmos/cosmos-sdk/types/errors"
10
+ sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
11
11
"github.com/cosmos/cosmos-sdk/x/auth/ante"
12
12
13
13
feeabsante "github.com/osmosis-labs/fee-abstraction/v8/x/feeabs/ante"
@@ -19,23 +19,23 @@ type HandlerOptions struct {
19
19
ante.HandlerOptions
20
20
21
21
IBCKeeper * ibckeeper.Keeper
22
- FeeAbskeeper feeabskeeper.Keeper
22
+ FeeAbsKeeper feeabskeeper.Keeper
23
23
}
24
24
25
25
// NewAnteHandler returns an AnteHandler that checks and increments sequence
26
26
// numbers, checks signatures & account numbers, and deducts fees from the first
27
27
// signer.
28
28
func NewAnteHandler (options HandlerOptions ) (sdk.AnteHandler , error ) {
29
29
if options .AccountKeeper == nil {
30
- return nil , sdkerrors .Wrap (errorstypes .ErrLogic , "account keeper is required for ante builder" )
30
+ return nil , errors .Wrap (sdkerrors .ErrLogic , "account keeper is required for ante builder" )
31
31
}
32
32
33
33
if options .BankKeeper == nil {
34
- return nil , sdkerrors .Wrap (errorstypes .ErrLogic , "bank keeper is required for ante builder" )
34
+ return nil , errors .Wrap (sdkerrors .ErrLogic , "bank keeper is required for ante builder" )
35
35
}
36
36
37
37
if options .SignModeHandler == nil {
38
- return nil , sdkerrors .Wrap (errorstypes .ErrLogic , "sign mode handler is required for ante builder" )
38
+ return nil , errors .Wrap (sdkerrors .ErrLogic , "sign mode handler is required for ante builder" )
39
39
}
40
40
41
41
sigGasConsumer := options .SigGasConsumer
@@ -46,12 +46,12 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
46
46
anteDecorators := []sdk.AnteDecorator {
47
47
ante .NewSetUpContextDecorator (), // outermost AnteDecorator. SetUpContext must be called first
48
48
ante.RejectExtensionOptionsDecorator {},
49
- feeabsante .NewFeeAbstrationMempoolFeeDecorator (options .FeeAbskeeper ),
49
+ feeabsante .NewFeeAbstrationMempoolFeeDecorator (options .FeeAbsKeeper ),
50
50
ante .NewValidateBasicDecorator (),
51
51
ante .NewTxTimeoutHeightDecorator (),
52
52
ante .NewValidateMemoDecorator (options .AccountKeeper ),
53
53
ante .NewConsumeGasForTxSizeDecorator (options .AccountKeeper ),
54
- feeabsante .NewFeeAbstractionDeductFeeDecorate (options .AccountKeeper , options .BankKeeper , options .FeeAbskeeper , options .FeegrantKeeper ),
54
+ feeabsante .NewFeeAbstractionDeductFeeDecorate (options .AccountKeeper , options .BankKeeper , options .FeeAbsKeeper , options .FeegrantKeeper ),
55
55
// SetPubKeyDecorator must be called before all signature verification decorators
56
56
ante .NewSetPubKeyDecorator (options .AccountKeeper ),
57
57
ante .NewValidateSigCountDecorator (options .AccountKeeper ),
0 commit comments