From 7bf9ad0edf55d2584df12641c7ec03a0abb43836 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Tue, 17 Dec 2024 23:01:10 +0530 Subject: [PATCH] demo changes --- app/ibc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/ibc.go b/app/ibc.go index 5766c2d..8671afe 100644 --- a/app/ibc.go +++ b/app/ibc.go @@ -7,6 +7,7 @@ import ( servertypes "github.com/cosmos/cosmos-sdk/server/types" "github.com/cosmos/cosmos-sdk/types/module" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/cosmos/cosmos-sdk/x/gov" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" @@ -162,6 +163,10 @@ func (app *App) registerIBCModules(appOpts servertypes.AppOptions) error { // this line is used by starport scaffolding # ibc/app/module + // Add gov module to IBC Router + govIBCModule := ibcfee.NewIBCMiddleware(gov.NewIBCModule(app.GovKeeper), app.IBCFeeKeeper) + ibcRouter.AddRoute(govtypes.ModuleName, govIBCModule) + app.IBCKeeper.SetRouter(ibcRouter) app.ScopedIBCKeeper = scopedIBCKeeper