@@ -12,7 +12,7 @@ import (
12
12
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
13
13
14
14
opchildante "github.com/initia-labs/OPinit/x/opchild/ante"
15
- opchildtypes "github.com/initia-labs/OPinit/x/opchild/types "
15
+ opchildkeeper "github.com/initia-labs/OPinit/x/opchild/keeper "
16
16
"github.com/initia-labs/initia/app/ante/accnum"
17
17
"github.com/initia-labs/initia/app/ante/sigverify"
18
18
@@ -30,8 +30,8 @@ type HandlerOptions struct {
30
30
ante.HandlerOptions
31
31
Codec codec.BinaryCodec
32
32
IBCkeeper * ibckeeper.Keeper
33
- OPChildKeeper opchildtypes. AnteKeeper
34
- AuctionKeeper auctionkeeper.Keeper
33
+ OPChildKeeper * opchildkeeper. Keeper
34
+ AuctionKeeper * auctionkeeper.Keeper
35
35
TxEncoder sdk.TxEncoder
36
36
MevLane auctionante.MEVLane
37
37
FreeLane block.Lane
@@ -49,26 +49,30 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
49
49
if options .AccountKeeper == nil {
50
50
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "account keeper is required for ante builder" )
51
51
}
52
-
53
52
if options .BankKeeper == nil {
54
53
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "bank keeper is required for ante builder" )
55
54
}
56
-
57
55
if options .SignModeHandler == nil {
58
56
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "sign mode handler is required for ante builder" )
59
57
}
60
-
61
58
if options .WasmConfig == nil {
62
59
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "wasm config is required for ante builder" )
63
60
}
64
-
65
61
if options .WasmKeeper == nil {
66
62
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "wasm keeper is required for ante builder" )
67
63
}
68
-
69
64
if options .TXCounterStoreService == nil {
70
65
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "wasm store service is required for ante builder" )
71
66
}
67
+ if options .OPChildKeeper == nil {
68
+ return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "opchild keeper is required for ante builder" )
69
+ }
70
+ if options .AuctionKeeper == nil {
71
+ return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "auction keeper is required for ante builder" )
72
+ }
73
+ if options .IBCkeeper == nil {
74
+ return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "IBC keeper is required for ante builder" )
75
+ }
72
76
73
77
sigGasConsumer := options .SigGasConsumer
74
78
if sigGasConsumer == nil {
@@ -116,6 +120,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
116
120
ante .NewIncrementSequenceDecorator (options .AccountKeeper ),
117
121
ibcante .NewRedundantRelayDecorator (options .IBCkeeper ),
118
122
auctionante .NewAuctionDecorator (options .AuctionKeeper , options .TxEncoder , options .MevLane ),
123
+ opchildante .NewRedundantBridgeDecorator (options .OPChildKeeper ),
119
124
}
120
125
121
126
return sdk .ChainAnteDecorators (anteDecorators ... ), nil
0 commit comments