Skip to content

Commit

Permalink
feat(bank): enable 0.46.5 bank migration fix through migrator keeper (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Nov 18, 2022
1 parent 2f55513 commit 8cce748
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/bank/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ func (m Migrator) Migrate1to2(ctx sdk.Context) error {
func (m Migrator) Migrate2to3(ctx sdk.Context) error {
return v046.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc)
}

// Migrate3_V046_4_To_V046_5 fixes migrations from version 2 to for chains based on SDK 0.46.0 - v0.46.4 ONLY.
// See v046.Migrate_V046_4_To_V046_5 for more details.
func (m Migrator) Migrate3_V046_4_To_V046_5(ctx sdk.Context) error {
return v046.Migrate_V046_4_To_V046_5(ctx.KVStore(m.keeper.storeKey))
}

0 comments on commit 8cce748

Please sign in to comment.