From 913ca5f8849a4f30d227caacb1764efb6123fa93 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Sun, 18 Aug 2024 15:48:01 +0700 Subject: [PATCH] fix: add v4.2.2 handler --- app/app.go | 8 ++++---- app/upgrades/{v4_2_1 => v4_2_2}/constants.go | 4 ++-- app/upgrades/{v4_2_1 => v4_2_2}/upgrades.go | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename app/upgrades/{v4_2_1 => v4_2_2}/constants.go (75%) rename app/upgrades/{v4_2_1 => v4_2_2}/upgrades.go (100%) diff --git a/app/app.go b/app/app.go index 6e48ecf4..2657cd26 100644 --- a/app/app.go +++ b/app/app.go @@ -160,7 +160,7 @@ import ( v45 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_5" v46 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_6" v420 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_0" - v421 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_1" + v422 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_2" "github.com/rakyll/statik/fs" // unnamed import of statik for swagger UI support @@ -1194,8 +1194,8 @@ func (app *MigalooApp) setupUpgradeHandlers() { ), ) app.UpgradeKeeper.SetUpgradeHandler( - v421.UpgradeName, - v421.CreateUpgradeHandler( + v422.UpgradeName, + v422.CreateUpgradeHandler( app.mm, app.StakingKeeper, app.configurator, @@ -1214,7 +1214,7 @@ func (app *MigalooApp) setupUpgradeHandlers() { return } - if upgradeInfo.Name == v421.UpgradeName { + if upgradeInfo.Name == v422.UpgradeName { storeUpgrades := &storetypes.StoreUpgrades{ Added: []string{}, Deleted: []string{}, diff --git a/app/upgrades/v4_2_1/constants.go b/app/upgrades/v4_2_2/constants.go similarity index 75% rename from app/upgrades/v4_2_1/constants.go rename to app/upgrades/v4_2_2/constants.go index 5df08d86..1d9f10e0 100644 --- a/app/upgrades/v4_2_1/constants.go +++ b/app/upgrades/v4_2_2/constants.go @@ -1,7 +1,7 @@ package v4 -// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.1 upgrade. +// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.2 upgrade. // this upgrade includes the fix for pfm const ( - UpgradeName = "v4.2.1" + UpgradeName = "v4.2.2" ) diff --git a/app/upgrades/v4_2_1/upgrades.go b/app/upgrades/v4_2_2/upgrades.go similarity index 100% rename from app/upgrades/v4_2_1/upgrades.go rename to app/upgrades/v4_2_2/upgrades.go