From c4140adf6e393c8a1f861162103c6a3d2c8cd40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Tue, 17 Oct 2023 15:51:21 +0200 Subject: [PATCH] Ziga/fix og metamask urls (#1611) --- tools/walletextension/api/staticOG/javascript.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/walletextension/api/staticOG/javascript.js b/tools/walletextension/api/staticOG/javascript.js index baabe5541b..c12551efd3 100644 --- a/tools/walletextension/api/staticOG/javascript.js +++ b/tools/walletextension/api/staticOG/javascript.js @@ -54,9 +54,9 @@ async function fetchAndDisplayVersion() { function getNetworkName(gatewayAddress) { switch(gatewayAddress) { - case 'https://uat-testnet.obscu.ro/': + case 'https://uat-testnet.obscu.ro': return 'Obscuro UAT-Testnet'; - case 'https://dev-testnet.obscu.ro/': + case 'https://dev-testnet.obscu.ro': return 'Obscuro Dev-Testnet'; default: return 'Obscuro Testnet'; @@ -67,13 +67,13 @@ function getNetworkName(gatewayAddress) { function getRPCFromUrl(gatewayAddress) { // get the correct RPC endpoint for each network switch(gatewayAddress) { - case 'https://testnet.obscu.ro/': - return 'https://rpc.sepolia-testnet.obscu.ro' + // case 'https://testnet.obscu.ro': + // return 'https://rpc.sepolia-testnet.obscu.ro' case 'https://sepolia-testnet.obscu.ro': return 'https://rpc.sepolia-testnet.obscu.ro' - case 'https://uat-testnet.obscu.ro/': + case 'https://uat-testnet.obscu.ro': return 'https://rpc.uat-testnet.obscu.ro'; - case 'https://dev-testnet.obscu.ro/': + case 'https://dev-testnet.obscu.ro': return 'https://rpc.dev-testnet.obscu.ro'; default: return gatewayAddress;