diff --git a/app/upgrades.go b/app/upgrades.go index f6b0885f..70652865 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -7,7 +7,7 @@ import ( storetypes "cosmossdk.io/store/types" "github.com/realiotech/realio-network/app/upgrades/commission" - v2 "github.com/realiotech/realio-network/app/upgrades/v2" + v1 "github.com/realiotech/realio-network/app/upgrades/v1" upgradetypes "cosmossdk.io/x/upgrade/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -49,8 +49,8 @@ func (app *RealioNetwork) setupUpgradeHandlers() { ) app.UpgradeKeeper.SetUpgradeHandler( - v2.UpgradeName, - v2.CreateUpgradeHandler( + v1.UpgradeName, + v1.CreateUpgradeHandler( app.mm, app.configurator, app.ParamsKeeper, @@ -73,7 +73,7 @@ func (app *RealioNetwork) setupUpgradeHandlers() { return } - if upgradeInfo.Name == v2.UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { - app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &v2.V2StoreUpgrades)) + if upgradeInfo.Name == v1.UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &v1.V1StoreUpgrades)) } } diff --git a/app/upgrades/v2/constants.go b/app/upgrades/v1/constants.go similarity index 83% rename from app/upgrades/v2/constants.go rename to app/upgrades/v1/constants.go index ce7caad6..29c8e1e5 100644 --- a/app/upgrades/v2/constants.go +++ b/app/upgrades/v1/constants.go @@ -1,4 +1,4 @@ -package v2 +package v1 import ( storetypes "cosmossdk.io/store/types" @@ -9,10 +9,10 @@ import ( const ( // UpgradeName defines the on-chain upgrade name. - UpgradeName = "v2" + UpgradeName = "v1" ) -var V2StoreUpgrades = storetypes.StoreUpgrades{ +var V1StoreUpgrades = storetypes.StoreUpgrades{ Added: []string{ consensustypes.ModuleName, crisistypes.ModuleName, diff --git a/app/upgrades/v2/upgrades.go b/app/upgrades/v1/upgrades.go similarity index 99% rename from app/upgrades/v2/upgrades.go rename to app/upgrades/v1/upgrades.go index 4a5ddf23..cb58bb28 100644 --- a/app/upgrades/v2/upgrades.go +++ b/app/upgrades/v1/upgrades.go @@ -1,4 +1,4 @@ -package v2 +package v1 import ( "context"