From 1b71b678a01fa10ffcb939b5e3e3b22759b90a99 Mon Sep 17 00:00:00 2001 From: Vinay Singh <122733374+vnaysngh-mudrex@users.noreply.github.com> Date: Mon, 18 Mar 2024 13:50:05 +0530 Subject: [PATCH] Update getLibrary.ts (#286) --- src/utils/getLibrary.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/utils/getLibrary.ts b/src/utils/getLibrary.ts index c9340637..0464c487 100644 --- a/src/utils/getLibrary.ts +++ b/src/utils/getLibrary.ts @@ -20,7 +20,7 @@ const provider = jsonRpcProvider({ if (chainType === 'sepolia') { nodeUrl = 'https://starknet-sepolia.public.blastapi.io' } else if (chainType === 'mainnet') { - nodeUrl = 'https://api-starknet-jediswap.dwellir.com/' + nodeUrl = 'https://api-starknet-mainnet.dwellir.com/dd28e566-3260-4d8d-8180-6ef1a161e41c' } else if (chainType === 'goerli') { nodeUrl = 'https://rpc.starknet-testnet.lava.build/' } @@ -34,13 +34,4 @@ const provider = jsonRpcProvider({ } }) -export const providerInstance = (chainId: string) => { - return new RpcProvider({ - nodeUrl: - chainId === ChainId.SN_GOERLI - ? 'https://starknet-testnet.public.blastapi.io/rpc/v0_6' - : 'https://api-starknet-jediswap.dwellir.com/' - }) -} - export default provider