Skip to content

Commit

Permalink
change the version name in mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Agrawal committed Feb 17, 2022
1 parent e74734d commit 4b72386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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},
}
Expand Down

0 comments on commit 4b72386

Please sign in to comment.