Skip to content

Commit

Permalink
Update getLibrary.ts (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaysngh-mudrex authored Mar 18, 2024
1 parent fa49d33 commit 1b71b67
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/utils/getLibrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
}
Expand All @@ -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

0 comments on commit 1b71b67

Please sign in to comment.