From 1cc6589e9acd6ce5883f39e54c648dae9c94c3df Mon Sep 17 00:00:00 2001 From: cyrbuzz Date: Fri, 19 Apr 2024 17:20:35 +0800 Subject: [PATCH] chore: reset --- src/hooks/useContracts.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useContracts.tsx b/src/hooks/useContracts.tsx index f280d73..244e9b0 100644 --- a/src/hooks/useContracts.tsx +++ b/src/hooks/useContracts.tsx @@ -11,8 +11,8 @@ import { base, baseSepolia, mainnet, sepolia } from 'viem/chains'; import { PublicClient, useNetwork, usePublicClient, useWalletClient, WalletClient } from 'wagmi'; const fetchUrls: { [key in number]: string } = { - [base.id]: process.env.REACT_APP_SUBQUERY_OFFICIAL_BASE_RPC as string, - [mainnet.id]: process.env.REACT_APP_SUBQUERY_OFFICIAL_ETH_RPC as string + [base.id]: base.rpcUrls.public.http[0] || process.env.REACT_APP_SUBQUERY_OFFICIAL_BASE_RPC, + [mainnet.id]: mainnet.rpcUrls.public.http[0] || process.env.REACT_APP_SUBQUERY_OFFICIAL_ETH_RPC }; export function publicClientToProvider(publicClient: PublicClient) {