We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baa42a3 commit d05ca9bCopy full SHA for d05ca9b
apps/api-reference/src/components/EvmProvider/index.tsx
@@ -19,9 +19,11 @@ const CHAINS = NETWORK_IDS.map((id) =>
19
20
const TRANSPORTS = Object.fromEntries(
21
CHAINS.map((chain) => {
22
- const url = getRpcUrl(chain.id);
23
- if (url) {
24
- return [chain.id, http(url)];
+ const rpcUrl = getRpcUrl(chain.id);
+ if (rpcUrl) {
+ return [chain.id, http(rpcUrl)];
25
+ } else if (chain.rpcUrls.default.http[0]) {
26
+ return [chain.id, http(chain.rpcUrls.default.http[0])];
27
} else {
28
throw new Error(`No rpc url found for ${chain.name}`);
29
}
0 commit comments