Skip to content

Commit

Permalink
Remove superfluous logging in defaultProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 7, 2023
1 parent a09f584 commit f87f6ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src.ts/providers/default-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
if (options.alchemy !== "-") {
try {
providers.push(new AlchemyProvider(network, options.alchemy));
} catch (error) { console.log(error); }
} catch (error) { }
}

if (options.ankr !== "-" && options.ankr != null) {
try {
providers.push(new AnkrProvider(network, options.ankr));
} catch (error) { console.log(error); }
} catch (error) { }
}

if (options.cloudflare !== "-") {
try {
providers.push(new CloudflareProvider(network));
} catch (error) { console.log(error); }
} catch (error) { }
}

if (options.etherscan !== "-") {
try {
providers.push(new EtherscanProvider(network, options.etherscan));
} catch (error) { console.log(error); }
} catch (error) { }
}

if (options.infura !== "-") {
Expand All @@ -68,7 +68,7 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
projectId = projectId.projectId;
}
providers.push(new InfuraProvider(network, projectId, projectSecret));
} catch (error) { console.log(error); }
} catch (error) { }
}
/*
if (options.pocket !== "-") {
Expand All @@ -89,7 +89,7 @@ export function getDefaultProvider(network: string | Networkish | WebSocketLike,
try {
let token = options.quicknode;
providers.push(new QuickNodeProvider(network, token));
} catch (error) { console.log(error); }
} catch (error) { }
}

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

0 comments on commit f87f6ef

Please sign in to comment.