Skip to content

Commit d9446f2

Browse files
committed
chore: add goerli
1 parent 3327c9e commit d9446f2

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

src/bootstrap/app-router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const AppRouter = () => {
6767

6868
if (Object.entries(connectors).length === 0) return <NoWeb3Detected />
6969

70-
if (isUnsupported && error)
70+
if (isUnsupported && error) {
7171
return (
7272
<ErrorPage
7373
code={' '}
@@ -81,7 +81,7 @@ const AppRouter = () => {
8181
}
8282
/>
8383
)
84-
else if (!networkId || !pathResolved) return <Loading />
84+
} else if (!networkId || !pathResolved) return <Loading />
8585
else if (invalidTcrAddr || !client) return <ErrorPage />
8686

8787
return (

src/config/networks.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ export const NETWORKS = Object.freeze({
22
ethereum: 1,
33
xDai: 100,
44
rinkeby: 4,
5-
kovan: 42
5+
kovan: 42,
6+
goerli: 5
67
})
78

89
export const DEFAULT_NETWORK = NETWORKS.ethereum
@@ -39,6 +40,27 @@ export const NETWORKS_INFO = Object.freeze({
3940
],
4041
infoURL: 'https://ethereum.org'
4142
},
43+
[NETWORKS.goerli]: {
44+
name: 'Ethereum Goerli',
45+
color: '#29b6af',
46+
supported: true,
47+
chainId: 5,
48+
shortName: 'goerlieth',
49+
chain: 'GoerliETH',
50+
network: 'goerli',
51+
networkId: 5,
52+
nativeCurrency: { name: 'GoerliEther', symbol: 'GoerliETH', decimals: 18 },
53+
rpc: [RPC_URLS[NETWORKS.goerli]],
54+
faucets: [],
55+
explorers: [
56+
{
57+
name: 'etherscan',
58+
url: 'https://goerli.etherscan.io',
59+
standard: 'EIP3091'
60+
}
61+
],
62+
infoURL: 'https://ethereum.org'
63+
},
4264
[NETWORKS.xDai]: {
4365
name: 'xDAI Chain',
4466
color: '#48A9A6',

0 commit comments

Comments
 (0)