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) } }