Skip to content

Commit

Permalink
Squashed unhandled promise exception for Providers that are never used (
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Dec 5, 2018
1 parent 16fdf6b commit f56fc57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src.ts/providers/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,9 @@ export class BaseProvider extends Provider {
return network;
}));

// Squash any "unhandled promise" errors; the don't need to be handled
this.ready.catch((error) => { });

} else {
let knownNetwork = getNetwork((network == null) ? 'homestead': network);
if (knownNetwork) {
Expand Down

0 comments on commit f56fc57

Please sign in to comment.