From 23e4ecb5a63beaa02a57c06efb87c6f35f8934d9 Mon Sep 17 00:00:00 2001 From: scosemicolon <277933778+scosemicolon@users.noreply.github.com> Date: Mon, 25 May 2026 00:09:19 +0100 Subject: [PATCH] docs: clarify network source comments --- packages/network/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/network/src/index.ts b/packages/network/src/index.ts index cfa196781..92c6c165c 100644 --- a/packages/network/src/index.ts +++ b/packages/network/src/index.ts @@ -50,7 +50,7 @@ export class Network extends Connector { if (Array.isArray(urls)) { accumulator[Number(chainId)] = urls } else { - // this ternary just makes typescript happy, since it can't infer that the array has elements of the same type + // this ternary just makes TypeScript happy, since it can't infer that the array has elements of the same type accumulator[Number(chainId)] = isUrl(urls) ? [urls] : [urls] } @@ -66,7 +66,7 @@ export class Network extends Connector { const urls = this.urlMap[chainId] - // early return if we have a single jsonrpc provider already + // early return if we have a single JSON-RPC provider already if (urls.length === 1 && !isUrl(urls[0])) { return (this.providerCache[chainId] = Promise.resolve(urls[0])) }