From 28152702c40bd08fe35deefad30114b5cb4cc65b Mon Sep 17 00:00:00 2001 From: GnaD13 Date: Thu, 1 Feb 2024 12:42:22 +0700 Subject: [PATCH] nit --- app/upgrades/multi-staking/upgrade.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/upgrades/multi-staking/upgrade.go b/app/upgrades/multi-staking/upgrade.go index b8dc9c9c..9aaa9f18 100644 --- a/app/upgrades/multi-staking/upgrade.go +++ b/app/upgrades/multi-staking/upgrade.go @@ -57,12 +57,6 @@ func CreateUpgradeHandler( panic(err) } - // create multi staking module account - ak.GetModuleAccount(ctx, multistakingtypes.ModuleName) - - // migrate bank - migrateBank(ctx, bk) - // migrate multistaking appState, err = migrateMultiStaking(appState) if err != nil { @@ -80,6 +74,9 @@ func CreateUpgradeHandler( vm[multistakingtypes.ModuleName] = multistaking.AppModule{}.ConsensusVersion() mm.Modules[multistakingtypes.ModuleName].InitGenesis(ctx, cdc, appState[multistakingtypes.ModuleName]) + // migrate bank + migrateBank(ctx, bk) + return mm.RunMigrations(ctx, configurator, vm) } }