Skip to content

Commit

Permalink
Log errors temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Jul 26, 2024
1 parent e9d6561 commit d3f0c6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/RpcTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d3f0c6d

Please sign in to comment.