diff --git a/store/network.ts b/store/network.ts index 0f67be0c..4474459f 100644 --- a/store/network.ts +++ b/store/network.ts @@ -12,12 +12,12 @@ export const chains: ExtendedChain[] = [ name: "Mainnet", network: "mainnet", iconUrl: "/img/ethereum.svg", - hostnames: ["https://portal.zksync.io", "https://staging-portal.zksync.dev"], + hostnames: ["https://staging-portal.zksync.dev"], }, { ...goerli, name: "Goerli Testnet", - hostnames: ["https://goerli.portal.zksync.io", "https://goerli.staging-portal.zksync.dev"], + hostnames: ["https://goerli.staging-portal.zksync.dev"], }, ]; diff --git a/utils/helpers.ts b/utils/helpers.ts index bc2e37f6..55308f96 100644 --- a/utils/helpers.ts +++ b/utils/helpers.ts @@ -46,13 +46,8 @@ export const getNetworkUrl = (network: ExtendedChain, routePath: string, version url.searchParams.set("version", version); } return url.toString(); - } else { - const url = new URL(routePath, network.hostnames[0]); - if (version) { - url.searchParams.set("version", version); - } - return url.toString(); } + return network.hostnames[0] + routePath; }; export const isMobile = () => {