Skip to content

Commit

Permalink
Merge pull request #108 from PiotrNap/patch-1
Browse files Browse the repository at this point in the history
Update helios.js
  • Loading branch information
christianschmitz committed Oct 24, 2023
2 parents d3b93bf + 311dbde commit d706361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helios.js
Original file line number Diff line number Diff line change
Expand Up @@ -53660,7 +53660,7 @@ export class BlockfrostV0 {
* @returns {Promise<any>}
*/
async getLatestEpoch() {
const response = await fetch(`https://cardano-preview.blockfrost.io/api/v0/epochs/latest`, {
const response = await fetch(`https://cardano-${this.#networkName}.blockfrost.io/api/v0/epochs/latest`, {
method: "GET",
headers: {
"project_id": this.#projectId
Expand Down Expand Up @@ -56448,4 +56448,4 @@ async function uplcToJsInternal(schema, data, helpers) {
*/
export function uplcToJs(schema, data, helpers) {
return uplcToJsInternal(schema, data, helpers);
}
}

0 comments on commit d706361

Please sign in to comment.