Skip to content

Commit 23e4ecb

Browse files
committed
docs: clarify network source comments
1 parent bd26702 commit 23e4ecb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/network/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Network extends Connector {
5050
if (Array.isArray(urls)) {
5151
accumulator[Number(chainId)] = urls
5252
} else {
53-
// this ternary just makes typescript happy, since it can't infer that the array has elements of the same type
53+
// this ternary just makes TypeScript happy, since it can't infer that the array has elements of the same type
5454
accumulator[Number(chainId)] = isUrl(urls) ? [urls] : [urls]
5555
}
5656

@@ -66,7 +66,7 @@ export class Network extends Connector {
6666

6767
const urls = this.urlMap[chainId]
6868

69-
// early return if we have a single jsonrpc provider already
69+
// early return if we have a single JSON-RPC provider already
7070
if (urls.length === 1 && !isUrl(urls[0])) {
7171
return (this.providerCache[chainId] = Promise.resolve(urls[0]))
7272
}

0 commit comments

Comments
 (0)