From ae85d91af28d5e9440fcf44a9a20606b6b9869c0 Mon Sep 17 00:00:00 2001 From: amateima <89395931+amateima@users.noreply.github.com> Date: Wed, 13 Dec 2023 12:14:16 +0200 Subject: [PATCH] fix: Increase RPC timeout (#1115) Co-authored-by: Alexandru Matei Co-authored-by: Paul <108695806+pxrl@users.noreply.github.com> --- src/utils/ProviderUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ProviderUtils.ts b/src/utils/ProviderUtils.ts index c724016d6..85cc3d5fa 100644 --- a/src/utils/ProviderUtils.ts +++ b/src/utils/ProviderUtils.ts @@ -70,7 +70,7 @@ class RateLimitedProvider extends ethers.providers.StaticJsonRpcProvider { } } -const defaultTimeout = 25 * 1000; +const defaultTimeout = 60 * 1000; function formatProviderError(provider: ethers.providers.StaticJsonRpcProvider, rawErrorText: string) { return `Provider ${provider.connection.url} failed with error: ${rawErrorText}`;