Skip to content

Commit

Permalink
fix: resolve migration map in MigrateHandler (#17301) (backport #17302)…
Browse files Browse the repository at this point in the history
… (#17303)

Co-authored-by: mmsqe <mavis@crypto.com>
  • Loading branch information
mergify[bot] and mmsqe authored Aug 7, 2023
1 parent b3f0567 commit 4554776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/genutil/client/cli/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func MigrateHandler(cmd *cobra.Command, args []string, migrations types.Migratio
return errors.Wrap(err, "failed to JSON unmarshal initial genesis state")
}

migrationFunc := GetMigrationCallback(target)
migrationFunc := migrations[target]
if migrationFunc == nil {
return fmt.Errorf("unknown migration function for version: %s", target)
}
Expand Down

0 comments on commit 4554776

Please sign in to comment.