From b165e04f12468ff2674c00d65b0c9b715148f752 Mon Sep 17 00:00:00 2001 From: Sai Kumar <17549398+gsk967@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:10:29 +0000 Subject: [PATCH] fix: fix the store upgrade for metoken on v6.1.0 (#2278) * fix the storeupgrade for metoken on v6.1.0 * retrigger checks --------- Co-authored-by: Egor Kostetskiy --- app/upgrades.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/upgrades.go b/app/upgrades.go index 64cb8881f2..e736e9c18c 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -29,6 +29,7 @@ import ( "github.com/umee-network/umee/v6/x/incentive" leveragekeeper "github.com/umee-network/umee/v6/x/leverage/keeper" leveragetypes "github.com/umee-network/umee/v6/x/leverage/types" + "github.com/umee-network/umee/v6/x/metoken" oraclemigrator "github.com/umee-network/umee/v6/x/oracle/migrations" oracletypes "github.com/umee-network/umee/v6/x/oracle/types" @@ -60,7 +61,7 @@ func (app UmeeApp) RegisterUpgradeHandlers() { app.registerUpgrade6_1("v6.1", upgradeInfo) } -func (app *UmeeApp) registerUpgrade6_1(planName string, _ upgradetypes.Plan) { +func (app *UmeeApp) registerUpgrade6_1(planName string, upgradeInfo upgradetypes.Plan) { app.UpgradeKeeper.SetUpgradeHandler(planName, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("-----------------------------\n-----------------------------") @@ -77,6 +78,10 @@ func (app *UmeeApp) registerUpgrade6_1(planName string, _ upgradetypes.Plan) { return app.mm.RunMigrations(ctx, app.configurator, fromVM) }, ) + + app.storeUpgrade(planName, upgradeInfo, storetypes.StoreUpgrades{ + Added: []string{metoken.ModuleName}, + }) } func (app *UmeeApp) registerUpgrade6(upgradeInfo upgradetypes.Plan) {