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 d2e683e commit 6e01e54Copy full SHA for 6e01e54
src.ts/providers/default-provider.ts
@@ -41,7 +41,7 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
41
} catch (error) { console.log(error); }
42
}
43
44
- if (options.ankr !== "-") {
+ if (options.ankr !== "-" && options.ankr != null) {
45
try {
46
providers.push(new AnkrProvider(network, options.ankr));
47
0 commit comments