From ce48a6af98fa0a533b36b876b14aedaff6c573fe Mon Sep 17 00:00:00 2001 From: vuong177 Date: Wed, 23 Oct 2024 15:12:21 +0700 Subject: [PATCH] rename upgrade package --- app/app.go | 7 ++++--- app/upgrades/{v2.0.1 => v2.1.0}/upgrade.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename app/upgrades/{v2.0.1 => v2.1.0}/upgrade.go (95%) diff --git a/app/app.go b/app/app.go index 64206d53..b78427c2 100644 --- a/app/app.go +++ b/app/app.go @@ -59,7 +59,8 @@ import ( "github.com/onomyprotocol/onomy/app/upgrades" v1_1_6 "github.com/onomyprotocol/onomy/app/upgrades/v1.1.6" v2_0_0 "github.com/onomyprotocol/onomy/app/upgrades/v2.0.0" - v2_0_1 "github.com/onomyprotocol/onomy/app/upgrades/v2.0.1" + v2_1_0 "github.com/onomyprotocol/onomy/app/upgrades/v2.1.0" + "github.com/onomyprotocol/onomy/docs" ) @@ -461,7 +462,7 @@ func (app *OnomyApp) SimulationManager() *module.SimulationManager { func (app *OnomyApp) setupUpgradeHandlers() { app.UpgradeKeeper.SetUpgradeHandler(v1_1_6.Name, v1_1_6.UpgradeHandler) app.UpgradeKeeper.SetUpgradeHandler(v2_0_0.Name, v2_0_0.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers)) - app.UpgradeKeeper.SetUpgradeHandler(v2_0_1.Name, v2_0_1.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers)) + app.UpgradeKeeper.SetUpgradeHandler(v2_1_0.Name, v2_1_0.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers)) upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() if err != nil { @@ -480,7 +481,7 @@ func (app *OnomyApp) setupUpgradeHandlers() { storeUpgrades = &storetypes.StoreUpgrades{ Deleted: []string{"provider"}, } - case v2_0_1.Name: + case v2_1_0.Name: storeUpgrades = &storetypes.StoreUpgrades{ Deleted: []string{"dao"}, } diff --git a/app/upgrades/v2.0.1/upgrade.go b/app/upgrades/v2.1.0/upgrade.go similarity index 95% rename from app/upgrades/v2.0.1/upgrade.go rename to app/upgrades/v2.1.0/upgrade.go index 4625d386..8943dd4c 100644 --- a/app/upgrades/v2.0.1/upgrade.go +++ b/app/upgrades/v2.1.0/upgrade.go @@ -1,5 +1,5 @@ // Package v1_1_4 is contains chain upgrade of the corresponding version. -package v2_0_1 //nolint:revive,stylecheck // app version +package v2_1_0 //nolint:revive,stylecheck // app version import ( "context"