Skip to content

Commit

Permalink
fix: remove production domains
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Jul 3, 2023
1 parent 329f545 commit 73cd5b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions store/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
];

Expand Down
7 changes: 1 addition & 6 deletions utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 73cd5b2

Please sign in to comment.