From ebc4c7f0ed01aa54e3b33017708421da0b291988 Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Tue, 14 Nov 2023 17:47:18 +0000 Subject: [PATCH] fix(cosmos): add alternative upgrade name for emerynet --- golang/cosmos/app/app.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/golang/cosmos/app/app.go b/golang/cosmos/app/app.go index b9aff7586f4..7a2d3d7dc93 100644 --- a/golang/cosmos/app/app.go +++ b/golang/cosmos/app/app.go @@ -792,8 +792,9 @@ func NewAgoricApp( app.SetEndBlocker(app.EndBlocker) const ( - upgradeName = "agoric-upgrade-12" - upgradeNameTest = "agorictest-upgrade-12" + upgradeName = "agoric-upgrade-12" + upgradeNameTest = "agorictest-upgrade-12" + upgradeNameEmerynet = "agoric-upgrade-12-rc0" ) app.UpgradeKeeper.SetUpgradeHandler( @@ -804,6 +805,10 @@ func NewAgoricApp( upgradeNameTest, upgrade12Handler(app, upgradeNameTest), ) + app.UpgradeKeeper.SetUpgradeHandler( + upgradeNameEmerynet, + upgrade12Handler(app, upgradeNameTest), + ) if loadLatest { if err := app.LoadLatestVersion(); err != nil {