diff --git a/app/app.go b/app/app.go index acd005d5f..1e3828774 100644 --- a/app/app.go +++ b/app/app.go @@ -670,7 +670,7 @@ func (a *App) ModuleAccountsPermissions() map[string][]string { } } func (app *App) registerUpgradeHandlers() { - app.upgradeKeeper.SetUpgradeHandler("update", func(ctx sdk.Context, plan upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) { + app.upgradeKeeper.SetUpgradeHandler("v0.1.1", func(ctx sdk.Context, plan upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) { // 1st-time running in-store migrations, using 1 as fromVersion to // avoid running InitGenesis. fromVM := map[string]uint64{ @@ -698,7 +698,7 @@ func (app *App) registerUpgradeHandlers() { if err != nil { panic(err) } - if upgradeInfo.Name == "update" && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + if upgradeInfo.Name == "v0.1.1" && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { storeUpgrades := storetypes.StoreUpgrades{ Added: []string{wasmtypes.ModuleName}, }