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: expose gov Migrate_V046_6_To_V046_7 through migrator #14335

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

### Features

* (gov) [#14355](https://github.com/cosmos/cosmos-sdk/pull/14355) Expose gov Migrate_V046_6_To_V046_7 through migrator.


## [v0.46.7](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.7) - 2022-12-13

### Features
Expand Down
6 changes: 6 additions & 0 deletions x/gov/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)
}

// Migrate_V046_6_To_V046_7 fixes votes from <=v0.46.6
// to v0.46.7 ONLY.
func (m Migrator) Migrate_V046_6_To_V046_7(ctx sdk.Context) error {
return v046.Migrate_V046_6_To_V046_7(ctx.KVStore(m.keeper.storeKey), m.keeper.cdc)
}