From e94e19badc3dc9cadf1003f3d9cdfbfd883001b4 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Thu, 14 Sep 2023 00:46:24 +0800 Subject: [PATCH] fix: missing upgrade plan for pisco --- app/app.go | 5 +++++ app/config/const.go | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 04d36705..517046a3 100644 --- a/app/app.go +++ b/app/app.go @@ -1143,6 +1143,11 @@ func (app *TerraApp) RegisterUpgradeHandlers(cfg module.Configurator) { terraappconfig.Upgrade2_3_0, v2_3_0.CreateUpgradeHandler(app.mm, app.configurator, app.TokenFactoryKeeper), ) + // This is pisco only since an incorrect plan name was used for the upgrade + app.UpgradeKeeper.SetUpgradeHandler( + terraappconfig.Upgrade2_4_rc, + v2_4.CreateUpgradeHandler(app.mm, app.configurator), + ) app.UpgradeKeeper.SetUpgradeHandler( terraappconfig.Upgrade2_4, v2_4.CreateUpgradeHandler(app.mm, app.configurator), diff --git a/app/config/const.go b/app/config/const.go index 3857cbaa..cbd314fd 100644 --- a/app/config/const.go +++ b/app/config/const.go @@ -47,8 +47,9 @@ const ( WasmMsgMigrateContract = "/cosmwasm.wasm.v1.MsgMigrateContract" // UpgradeName gov proposal name - Upgrade2_2_0 = "2.2.0" - Upgrade2_3_0 = "2.3.0" - Upgrade2_4 = "v2.4" - Upgrade2_5 = "v2.5" + Upgrade2_2_0 = "2.2.0" + Upgrade2_3_0 = "2.3.0" + Upgrade2_4_rc = "2.4.0-rc4" // This is pisco only since an incorrect plan name was used for the upgrade + Upgrade2_4 = "v2.4" + Upgrade2_5 = "v2.5" )