Skip to content

Commit

Permalink
update module initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Dec 15, 2023
1 parent fc44ee8 commit 8bb49c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ func New(
var transferStack ibcporttypes.IBCModule
transferStack = ibctransfer.NewIBCModule(app.IBCTransferKeeper)
// transferStack = ibcfee.NewIBCMiddleware(transferStack, app.IBCFeeKeeper)
transferStack = uics20.NewICS20Module(transferStack, app.UIbcQuotaKeeperB, appCodec)
transferStack = uics20.NewICS20Module(transferStack, appCodec,
app.UIbcQuotaKeeperB,
leveragekeeper.NewMsgServerImpl(app.LeverageKeeper))

// Create Interchain Accounts Controller Stack
// SendPacket, since it is originating from the application to core IBC:
Expand Down
3 changes: 2 additions & 1 deletion x/uibc/uics20/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ type ICS20Module struct {

// NewICS20Module is an IBCMiddlware constructor.
// `app` must be an ICS20 app.
func NewICS20Module(app porttypes.IBCModule, k quota.KeeperBuilder, cdc codec.JSONCodec) ICS20Module {
func NewICS20Module(app porttypes.IBCModule, cdc codec.JSONCodec, k quota.KeeperBuilder, l ltypes.MsgServer) ICS20Module {
return ICS20Module{
IBCModule: app,
kb: k,
leverage: l,
cdc: cdc,
}
}
Expand Down

0 comments on commit 8bb49c4

Please sign in to comment.