Skip to content

Commit

Permalink
updated provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ma12ki committed Nov 7, 2023
1 parent e4dc01b commit 1666dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ export function getProvider(chainId: ChainId): ethers.providers.BaseProvider {
case ChainId.arbitrum: {
return new ethers.providers.JsonRpcProvider('https://arb1.arbitrum.io/rpc');
}
case ChainId.ethereum: {
return new ethers.providers.JsonRpcProvider('https://cloudflare-eth.com/');
}
}

return ethers.getDefaultProvider(ethers.providers.getNetwork(chainId));
Expand Down

0 comments on commit 1666dea

Please sign in to comment.