From ff6587b4bebaa9f0766c4feb74ff5e0bddb9fb58 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Tue, 10 Sep 2024 09:16:56 -0700 Subject: [PATCH] chore: set release version --- app/setup_handlers.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/setup_handlers.go b/app/setup_handlers.go index dc17069535..90a1f10565 100644 --- a/app/setup_handlers.go +++ b/app/setup_handlers.go @@ -7,10 +7,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/upgrade/types" - - "github.com/zeta-chain/zetacore/pkg/constant" ) +const releaseVersion = "v20" + func SetupHandlers(app *App) { allUpgrades := upgradeTracker{ upgrades: []upgradeTrackerItem{ @@ -51,9 +51,9 @@ func SetupHandlers(app *App) { } app.UpgradeKeeper.SetUpgradeHandler( - constant.Version, + releaseVersion, func(ctx sdk.Context, _ types.Plan, vm module.VersionMap) (module.VersionMap, error) { - app.Logger().Info("Running upgrade handler for " + constant.Version) + app.Logger().Info("Running upgrade handler for " + releaseVersion) var err error for _, upgradeHandler := range upgradeHandlerFns { @@ -71,7 +71,7 @@ func SetupHandlers(app *App) { if err != nil { panic(err) } - if upgradeInfo.Name == constant.Version && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + if upgradeInfo.Name == releaseVersion && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { // Use upgrade store loader for the initial loading of all stores when app starts, // it checks if version == upgradeHeight and applies store upgrades before loading the stores, // so that new stores start with the correct version (the current height of chain),