Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
GNaD13 committed Feb 1, 2024
1 parent 951118d commit 2815270
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/upgrades/multi-staking/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}
}
Expand Down

0 comments on commit 2815270

Please sign in to comment.