Skip to content

Commit

Permalink
Update config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 10, 2024
1 parent c6a9750 commit f149753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function createViemClient(
): Promise<ViemClient> {
const transport =
!rpcs || rpcs?.length === 0
? fallback(fallbacks[chainId].transport, { rank: false, retryCount: 6 })
? fallback(fallbacks[chainId].transport, { rank: false, retryCount: 3 })
: useFallbacks
? fallback(
[
Expand All @@ -92,7 +92,7 @@ export async function createViemClient(
),
...fallbacks[chainId].transport,
],
{ rank: false, retryCount: 6 },
{ rank: false, retryCount: 3 },
)
: fallback(
rpcs.map((v) =>
Expand All @@ -102,7 +102,7 @@ export async function createViemClient(
onFetchResponse: config?.onFetchResponse,
}),
),
{ rank: false, retryCount: 6 },
{ rank: false, retryCount: 3 },
);

return testClient
Expand Down

0 comments on commit f149753

Please sign in to comment.