From d3f0c6d660cdf952f6b846260913f2831180983b Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Fri, 26 Jul 2024 13:08:22 +0200 Subject: [PATCH] Log errors temporarily --- src/components/RpcTable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/RpcTable.tsx b/src/components/RpcTable.tsx index ea2faaccd..5fa633a2b 100644 --- a/src/components/RpcTable.tsx +++ b/src/components/RpcTable.tsx @@ -19,7 +19,8 @@ async function checkRpc(chainId: number, rpc: string) { const provider = new JsonRpcProvider(rpc, chainId, { staticNetwork: true }); const blockNumber = await provider.getBlockNumber(); return { blockNumber, latency: Date.now() - now }; - } catch { + } catch (error) { + console.error(error); return null; } }