Skip to content

Commit

Permalink
chore(cosmos): temporarily disable transfer middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 14, 2024
1 parent bb4436e commit 481eb54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func NewAgoricApp(
appCodec,
keys[ibctransfertypes.StoreKey],
app.GetSubspace(ibctransfertypes.ModuleName),
app.VtransferKeeper.GetICS4Wrapper(),
app.IBCKeeper.ChannelKeeper, // FIXME: should be app.VtransferKeeper.GetICS4Wrapper(),
app.IBCKeeper.ChannelKeeper,
&app.IBCKeeper.PortKeeper,
app.AccountKeeper,
Expand All @@ -576,10 +576,10 @@ func NewAgoricApp(

transferApp := transfer.NewAppModule(app.TransferKeeper)

var transferStack ibcporttypes.IBCModule
transferStack = transfer.NewIBCModule(app.TransferKeeper)
// FIXME: var transferStack ibcporttypes.IBCModule
transferStack := transfer.NewIBCModule(app.TransferKeeper)
vtransferMiddleware := vibc.NewMiddlewareReceiver(app.VtransferKeeper, transferStack)
transferStack = vtransfer.NewIBCMiddleware(transferStack, app.VtransferKeeper)
// FIXME: transferStack = vtransfer.NewIBCMiddleware(transferStack, app.VtransferKeeper)

vtransferPortHandler := vtransfer.NewReceiver(vtransferMiddleware, app.VtransferKeeper, app.TransferKeeper)
app.vtransferPort = vm.RegisterPortHandler("vtransfer", vtransferPortHandler)
Expand Down

0 comments on commit 481eb54

Please sign in to comment.