diff --git a/app/app.go b/app/app.go index 1619b3b9c..437206398 100644 --- a/app/app.go +++ b/app/app.go @@ -347,8 +347,9 @@ func NewTerraApp( app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp) // clear SoftwareUpgradeProposal - app.UpgradeKeeper.SetUpgradeHandler("v0.5.0", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - return app.mm.RunMigrations(ctx, app.configurator, fromVM) + app.UpgradeKeeper.SetUpgradeHandler("v0.5.0-rc0", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + // Just pass current version map, no migration required + return app.mm.RunMigrations(ctx, app.configurator, app.mm.GetVersionMap()) }) // register the staking hooks @@ -610,9 +611,6 @@ func (app *TerraApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abc panic(err) } - // store initial module version maps to upgrade keeper - app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap()) - return app.mm.InitGenesis(ctx, app.appCodec, genesisState) }