Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/network/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

Expand All @@ -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]))
}
Expand Down