From b394e54b0354ac29f63f0c66577ebc49557c7b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Novo?= <34069419+TeknoPT@users.noreply.github.com> Date: Mon, 29 Jan 2024 13:15:28 +0000 Subject: [PATCH] Fixing connection to mainnet. --- package.json | 2 +- src/lib/Commands/Commands.ts | 2 +- static/version.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4c7e310..4e9087d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "phantasma-hub", - "version": "1.0.11", + "version": "1.0.12", "private": true, "scripts": { "dev": "npm run version:update && vite dev --cors true", diff --git a/src/lib/Commands/Commands.ts b/src/lib/Commands/Commands.ts index d281280..357c69b 100644 --- a/src/lib/Commands/Commands.ts +++ b/src/lib/Commands/Commands.ts @@ -335,7 +335,7 @@ export function FormatData(vm: VMObject): any { export async function CheckURLStatus(url: string): Promise { try { - const response = await fetch(url.replace('rpc', 'api/v1/health')); + const response = await fetch(url.replace('/rpc', '/api/v1/health')); if (response.status == 200 || response.status == 405) { return true; } diff --git a/static/version.json b/static/version.json index 9e39fab..f595436 100644 --- a/static/version.json +++ b/static/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.11" + "version": "1.0.12" } \ No newline at end of file