From 41cdf1f59adf66ce3ab58199f10140474ab354dd Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:30:33 +0800 Subject: [PATCH 1/3] docs: delete goerli --- .env.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index f9b301e..82ea19b 100644 --- a/.env.sample +++ b/.env.sample @@ -1,4 +1,4 @@ -# localhost|goerli|sepolia|optimism|mainnet +# localhost|sepolia|optimism|mainnet NEXT_PUBLIC_CHAIN=optimism # https://discord.com/api/webhooks/... From 5c25fff96b8a5caa1a428b799dbd65c5988efbe8 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:31:14 +0800 Subject: [PATCH 2/3] chore: delete goerli --- src/utils/ChainUtils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/ChainUtils.ts b/src/utils/ChainUtils.ts index c98d6ca..8e59e7b 100644 --- a/src/utils/ChainUtils.ts +++ b/src/utils/ChainUtils.ts @@ -1,14 +1,12 @@ -import { mainnet, optimism, sepolia, goerli, localhost } from 'wagmi/chains' +import { mainnet, optimism, sepolia, localhost } from 'wagmi/chains' import { config } from '@/utils/Config' -const chains = [mainnet, optimism, sepolia, goerli, localhost] +const chains = [mainnet, optimism, sepolia, localhost] let chainIndex = 0 if (config.chain == 'optimism') { chainIndex = 1 } else if (config.chain == 'sepolia') { chainIndex = 2 -} else if (config.chain == 'goerli') { - chainIndex = 3 } else if (config.chain == 'localhost') { chainIndex = 4 } From da601bcdb2a596610ce202294d2f2267481a30a9 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:31:58 +0800 Subject: [PATCH 3/3] chore: delete goerli --- src/utils/Config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/Config.ts b/src/utils/Config.ts index b19f540..94369ad 100644 --- a/src/utils/Config.ts +++ b/src/utils/Config.ts @@ -12,7 +12,7 @@ export const config = { console.log('config:', config) /** - * @param chain localhost|goerli|sepolia|optimism|mainnet + * @param chain localhost|sepolia|optimism|mainnet */ function getProviderEndpoint(chain: String): string { switch(chain) { @@ -22,8 +22,6 @@ function getProviderEndpoint(chain: String): string { return 'https://rpc.ankr.com/optimism' case 'sepolia': return 'https://rpc.ankr.com/eth_sepolia' - case 'goerli': - return 'https://rpc.ankr.com/eth_goerli' } return 'http://127.0.0.1:8545' }