Skip to content

Commit

Permalink
fix: resolve migration map in MigrateHandler (cosmos#17301) (cosmos#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored and rootulp committed Nov 7, 2023
1 parent 980949b commit c108e19
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 c108e19

Please sign in to comment.