Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TTNguyenDev committed Feb 28, 2024
1 parent 8a790d4 commit 1bcf958
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web-app/lib/connectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1bcf958

Please sign in to comment.