Skip to content

Commit

Permalink
fix: resolve migration map in MigrateHandler (#17301) (#17302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Aug 7, 2023
1 parent 16d5269 commit 5372570
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 @@ -100,7 +100,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 5372570

Please sign in to comment.