Skip to content

Commit

Permalink
resolve with map
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Aug 7, 2023
1 parent 16d5269 commit eddff3c
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 eddff3c

Please sign in to comment.