Skip to content

Commit

Permalink
fix: register gov cross-chain app (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu committed Jul 31, 2023
1 parent 186de54 commit 16d3578
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ func (app *App) initModules(ctx sdk.Context) {

app.initBridge()
app.initStorage()
app.initGov()
}

func (app *App) initCrossChain() {
Expand All @@ -744,6 +745,13 @@ func (app *App) initStorage() {
storagemodulekeeper.RegisterCrossApps(app.StorageKeeper)
}

func (app *App) initGov() {
err := app.GovKeeper.RegisterCrossChainSyncParamsApp()
if err != nil {
panic(err)
}
}

// Name returns the name of the App
func (app *App) Name() string { return app.BaseApp.Name() }

Expand Down

0 comments on commit 16d3578

Please sign in to comment.