Skip to content

Commit aa14058

Browse files
committedAug 14, 2024·
fix: remove all files related to Goerli
1 parent 81ccabf commit aa14058

File tree

8 files changed

+3
-35
lines changed

8 files changed

+3
-35
lines changed
 

‎contracts/deployments/goerli.json

-15
This file was deleted.

‎ui/.env.goerli

-5
This file was deleted.

‎ui/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ cp .env.mainnet .env.local
2020
```
2121
or
2222
```
23-
cp .env.goerli .env.local
24-
```
25-
or
26-
```
2723
cp .env.sepolia .env.local
2824
```
2925

‎ui/components/SwitchNetworkBanner.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useNetwork } from '../lib/use-wagmi'
44

55
const chainIds = {
66
mainnet: 1,
7-
goerli: 5,
87
}
98

109
type Indexable = {

‎ui/lib/config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface Config {
3030
}
3131

3232

33-
const chain = process.env.NEXT_PUBLIC_CHAIN || "goerli";
33+
const chain = process.env.NEXT_PUBLIC_CHAIN;
3434
const defaultConfig = require(`../../contracts/deployments/${chain}.json`) as DeploymentConfig
3535
const config: Config = {
3636
nationToken: defaultConfig.nationToken || zeroAddress,
@@ -65,4 +65,3 @@ export const {
6565
nationPassportAgreementStatement,
6666
nationPassportAgreementURI,
6767
} = config
68-

‎ui/lib/connectors.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ethers } from 'ethers'
2-
import { mainnet, goerli, configureChains } from 'wagmi'
2+
import { mainnet, configureChains } from 'wagmi'
33
import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'
44
import { InjectedConnector } from 'wagmi/connectors/injected'
55
import { WalletConnectConnector } from '@wagmi/core/connectors/walletConnect'
@@ -9,7 +9,7 @@ import MetaMaskIcon from '../public/icons/connectors/metamask.svg'
99
import WalletConnectIcon from '../public/icons/connectors/walletconnect.svg'
1010
import { networkToId } from './network-id'
1111

12-
const chains = [mainnet, goerli]
12+
const chains = [mainnet]
1313

1414
export function provider() {
1515
if (process.env.NEXT_PUBLIC_CHAIN === 'local') {

‎ui/lib/network-id.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { describe, expect, test } from '@jest/globals'
22
import { networkToId } from './network-id'
33

4-
test("networkToId goerli", () => {
5-
const actual = networkToId('goerli')
6-
expect(actual).toBe(5)
7-
})
84

95
test("networkToId sepolia", () => {
106
const actual = networkToId('sepolia')

‎ui/lib/network-id.ts

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export function networkToId(network: any) {
77
return 1
88
case 'ethereum':
99
return 1
10-
case 'goerli':
11-
return 5
1210
case 'sepolia':
1311
return 11155111
1412
case 'local':

0 commit comments

Comments
 (0)
Please sign in to comment.