From e74734d8526f0dd33147f076bc60d5d415552376 Mon Sep 17 00:00:00 2001 From: Abhishek Agrawal Date: Thu, 17 Feb 2022 16:54:15 +0530 Subject: [PATCH 1/2] rename upgrade name --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 8ac7ff364..acd005d5f 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("v0.1.0", func(ctx sdk.Context, plan upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) { + app.upgradeKeeper.SetUpgradeHandler("update", 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 == "v0.1.0" && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + if upgradeInfo.Name == "update" && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { storeUpgrades := storetypes.StoreUpgrades{ Added: []string{wasmtypes.ModuleName}, } From 4b72386f3aa7896881a42aa142386419b94745c8 Mon Sep 17 00:00:00 2001 From: Abhishek Agrawal Date: Thu, 17 Feb 2022 17:17:30 +0530 Subject: [PATCH 2/2] change the version name in mainnet --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}, }