Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0calypse644 committed Dec 18, 2024
1 parent 501eaa0 commit 40cdc0d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 40cdc0d

Please sign in to comment.