From 827d8409d07d8e67c47569b73d283aa440e9a513 Mon Sep 17 00:00:00 2001 From: puneetmahajan Date: Tue, 19 Mar 2024 19:53:18 +0400 Subject: [PATCH] fix for v11 upgrade mainnet. --- app/upgrades/v11.8.0/upgrades.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/upgrades/v11.8.0/upgrades.go b/app/upgrades/v11.8.0/upgrades.go index 59adfb47..69dd25d9 100644 --- a/app/upgrades/v11.8.0/upgrades.go +++ b/app/upgrades/v11.8.0/upgrades.go @@ -18,6 +18,10 @@ func CreateUpgradeHandler(args upgrades.UpgradeHandlerArgs) upgradetypes.Upgrade return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("running upgrade handler") + newVM, err := args.ModuleManager.RunMigrations(ctx, args.Configurator, vm) + if err != nil { + panic(err) + } // make sure this region runs only during CI and mainnet v11 upgrade if chainID := ctx.ChainID(); chainID == "core-1" || chainID == "ictest-core-1" { if err := runLiquidstakeUpgradeMigration(ctx, args.Keepers); err != nil { @@ -30,7 +34,7 @@ func CreateUpgradeHandler(args upgrades.UpgradeHandlerArgs) upgradetypes.Upgrade // TODO: more migrations } - return args.ModuleManager.RunMigrations(ctx, args.Configurator, vm) + return newVM, nil } }