Skip to content

Commit

Permalink
Fix rpc batch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
serg-plusplus committed Dec 18, 2024
1 parent af2f85c commit 0186ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/back/rpc/network/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function sendRpc(

const getRpcProvider = memoize(
(url: string, chainId: number) =>
new RpcProvider(url, chainId, chainId === 1 ? false : true),
new RpcProvider(url, chainId, !url.toLowerCase().includes("infura")),
);

class RpcProvider extends ethers.JsonRpcProvider {
Expand Down

0 comments on commit 0186ff6

Please sign in to comment.