From 1bcf958fb5c748a7311ff9a6869d0b11d353ddab Mon Sep 17 00:00:00 2001 From: TTNguyenDev Date: Wed, 28 Feb 2024 13:33:45 +0700 Subject: [PATCH] lint --- packages/web-app/lib/connectors.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web-app/lib/connectors.tsx b/packages/web-app/lib/connectors.tsx index 72a09a82..984f9ab9 100644 --- a/packages/web-app/lib/connectors.tsx +++ b/packages/web-app/lib/connectors.tsx @@ -35,16 +35,20 @@ const gnosis: Chain = { // Returns and alchemy provider based on the chain const customAlchemyProvider = ({ priority, stallTimeout, weight }: FallbackProviderConfig) => { return (chain: Chain) => { - var apiKey: any; + let apiKey: any; switch (chain?.id) { case 1: apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY; + break; case 5: apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY_GOERLI; + break; case 11155111: apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY_SEPOLIA; + break; default: apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY; + break; } if (!apiKey || !chain.rpcUrls.alchemy) return null;