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 JeancarloBarrios committed Sep 28, 2024
1 parent f3b875b commit a17fe86
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 @@ -162,7 +162,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 a17fe86

Please sign in to comment.