diff --git a/tools/walletextension/api/staticOG/javascript.js b/tools/walletextension/api/staticOG/javascript.js index c261d1b3d3..5e2783f299 100644 --- a/tools/walletextension/api/staticOG/javascript.js +++ b/tools/walletextension/api/staticOG/javascript.js @@ -11,7 +11,7 @@ const pathJoin = obscuroGatewayVersion + "/join/"; const pathAuthenticate = obscuroGatewayVersion + "/authenticate/"; const pathQuery = obscuroGatewayVersion + "/query/"; const pathRevoke = obscuroGatewayVersion + "/revoke/"; -const obscuroChainIDDecimal = 777; +const obscuroChainIDDecimal = 443; const methodPost = "post"; const methodGet = "get"; const jsonHeaders = { @@ -31,7 +31,6 @@ let obscuroGatewayAddress = window.location.protocol + "//" + window.location.ho async function addNetworkToMetaMask(ethereum, userID, chainIDDecimal) { // add network to MetaMask let chainIdHex = "0x" + chainIDDecimal.toString(16); // Convert to hexadecimal and prefix with '0x' - try { await ethereum.request({ method: 'wallet_addEthereumChain', @@ -40,12 +39,12 @@ async function addNetworkToMetaMask(ethereum, userID, chainIDDecimal) { chainId: chainIdHex, chainName: 'Obscuro Testnet', nativeCurrency: { - name: 'Obscuro', - symbol: 'OBX', + name: 'Sepolia Ether', + symbol: 'ETH', decimals: 18 }, rpcUrls: [obscuroGatewayAddress+"/"+obscuroGatewayVersion+'/?u='+userID], - blockExplorerUrls: null, + blockExplorerUrls: ['https://testnet.obscuroscan.io'], }, ], }); @@ -228,4 +227,4 @@ const initialize = () => { } -window.addEventListener(eventDomLoaded, initialize); \ No newline at end of file +window.addEventListener(eventDomLoaded, initialize);