Skip to content

Commit

Permalink
fix: fix the gov proposals (#13002)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Aug 23, 2022
1 parent d3d4675 commit 90ef369
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions simapp/app.go
Expand Up @@ -296,6 +296,9 @@ func NewSimApp(
*/
app.GroupKeeper = groupkeeper.NewKeeper(keys[group.StoreKey], appCodec, app.MsgServiceRouter(), app.AccountKeeper, groupConfig)

// set the governance module account as the authority for conducting upgrades
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp, authtypes.NewModuleAddress(govtypes.ModuleName).String())

// Register the proposal types
// Deprecated: Avoid adding new handlers, instead use the new proposal flow
// by granting the governance module the right to execute the message.
Expand All @@ -320,8 +323,6 @@ func NewSimApp(
// register the governance hooks
),
)
// set the governance module account as the authority for conducting upgrades
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp, authtypes.NewModuleAddress(govtypes.ModuleName).String())

app.NFTKeeper = nftkeeper.NewKeeper(keys[nftkeeper.StoreKey], appCodec, app.AccountKeeper, app.BankKeeper)

Expand Down

0 comments on commit 90ef369

Please sign in to comment.