Skip to content

Commit f87f6ef

Browse files
committedMay 7, 2023
Remove superfluous logging in defaultProvider.
1 parent a09f584 commit f87f6ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

Diff for: ‎src.ts/providers/default-provider.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
3838
if (options.alchemy !== "-") {
3939
try {
4040
providers.push(new AlchemyProvider(network, options.alchemy));
41-
} catch (error) { console.log(error); }
41+
} catch (error) { }
4242
}
4343

4444
if (options.ankr !== "-" && options.ankr != null) {
4545
try {
4646
providers.push(new AnkrProvider(network, options.ankr));
47-
} catch (error) { console.log(error); }
47+
} catch (error) { }
4848
}
4949

5050
if (options.cloudflare !== "-") {
5151
try {
5252
providers.push(new CloudflareProvider(network));
53-
} catch (error) { console.log(error); }
53+
} catch (error) { }
5454
}
5555

5656
if (options.etherscan !== "-") {
5757
try {
5858
providers.push(new EtherscanProvider(network, options.etherscan));
59-
} catch (error) { console.log(error); }
59+
} catch (error) { }
6060
}
6161

6262
if (options.infura !== "-") {
@@ -68,7 +68,7 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
6868
projectId = projectId.projectId;
6969
}
7070
providers.push(new InfuraProvider(network, projectId, projectSecret));
71-
} catch (error) { console.log(error); }
71+
} catch (error) { }
7272
}
7373
/*
7474
if (options.pocket !== "-") {
@@ -89,7 +89,7 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
8989
try {
9090
let token = options.quicknode;
9191
providers.push(new QuickNodeProvider(network, token));
92-
} catch (error) { console.log(error); }
92+
} catch (error) { }
9393
}
9494

9595
assert(providers.length, "unsupported default network", "UNSUPPORTED_OPERATION", {

0 commit comments

Comments
 (0)
Please sign in to comment.