From a45ab9c12286a637154138ddd6d4f007b7dec4b7 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Thu, 16 May 2024 10:34:34 -0700 Subject: [PATCH] fix version --- app/setup_handlers.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/setup_handlers.go b/app/setup_handlers.go index 7221f7f680..d178f5a599 100644 --- a/app/setup_handlers.go +++ b/app/setup_handlers.go @@ -28,8 +28,6 @@ import ( ibccrosschaintypes "github.com/zeta-chain/zetacore/x/ibccrosschain/types" ) -const releaseVersion = "v17" - func SetupHandlers(app *App) { // Set param key table for params module migration for _, subspace := range app.ParamsKeeper.GetSubspaces() { @@ -129,8 +127,8 @@ func SetupHandlers(app *App) { upgradeHandlerFns, storeUpgrades = allUpgrades.mergeAllUpgrades() } - app.UpgradeKeeper.SetUpgradeHandler(releaseVersion, func(ctx sdk.Context, plan types.Plan, vm module.VersionMap) (module.VersionMap, error) { - app.Logger().Info("Running upgrade handler for " + releaseVersion) + app.UpgradeKeeper.SetUpgradeHandler(constant.Version, func(ctx sdk.Context, plan types.Plan, vm module.VersionMap) (module.VersionMap, error) { + app.Logger().Info("Running upgrade handler for " + constant.Version) var err error for _, upgradeHandler := range upgradeHandlerFns {