Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bank): enable 0.46.5 bank migration fix through migrator keeper #13929

Merged
merged 2 commits into from Nov 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions x/bank/keeper/migrations.go
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)
}

// Migrate2to3 fixes migrations from version 2 to for chains based on SDK 0.46.0 - v0.46.4 ONLY.
julienrbrt marked this conversation as resolved.
Show resolved Hide resolved
// 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))
}