From d164330bcb9f761417367f3caf400219f75ba4d2 Mon Sep 17 00:00:00 2001 From: GnaD13 Date: Thu, 1 Feb 2024 12:53:28 +0700 Subject: [PATCH] nit --- app/upgrades/multi-staking/upgrade.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/upgrades/multi-staking/upgrade.go b/app/upgrades/multi-staking/upgrade.go index 9aaa9f18..47660571 100644 --- a/app/upgrades/multi-staking/upgrade.go +++ b/app/upgrades/multi-staking/upgrade.go @@ -71,12 +71,14 @@ func CreateUpgradeHandler( panic(err) } - vm[multistakingtypes.ModuleName] = multistaking.AppModule{}.ConsensusVersion() - mm.Modules[multistakingtypes.ModuleName].InitGenesis(ctx, cdc, appState[multistakingtypes.ModuleName]) + ak.GetModuleAccount(ctx, multistakingtypes.ModuleName) // migrate bank migrateBank(ctx, bk) + vm[multistakingtypes.ModuleName] = multistaking.AppModule{}.ConsensusVersion() + mm.Modules[multistakingtypes.ModuleName].InitGenesis(ctx, cdc, appState[multistakingtypes.ModuleName]) + return mm.RunMigrations(ctx, configurator, vm) } }