From 40cdc0d30855d27fee5201cb3551342b19478491 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Wed, 18 Dec 2024 19:32:07 +0530 Subject: [PATCH] updating readme --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/readme.md b/readme.md index 4449854..9bdb896 100644 --- a/readme.md +++ b/readme.md @@ -24,6 +24,18 @@ replace ( ) ``` +Finally, the custom `gov` module has to be registered with the IBC router. To do that, simply add the route in the `app/ibc.go` file: + +```go + // Add gov module to IBC Router + govIBCModule := ibcfee.NewIBCMiddleware(gov.NewIBCModule(app.GovKeeper), app.IBCFeeKeeper) + ibcRouter.AddRoute(govtypes.ModuleName, govIBCModule) + + app.IBCKeeper.SetRouter(ibcRouter) +``` + +**NOTE:** The route must be added to the `ibcrouter` before calling the `SetRouter()` function + ## Setting up the test environment To setup the testing environment, simply run the `priv_gov_setup.sh` file and follow along with the prompts. The script does the following things: