Skip to content

Commit

Permalink
Make network an optional parameter to WebSocketProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 29, 2020
1 parent 1a4f7d1 commit 987b535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/websocket-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class WebSocketProvider extends JsonRpcProvider {

_wsReady: boolean;

constructor(url: string, network: Networkish) {
constructor(url: string, network?: Networkish) {
// This will be added in the future; please open an issue to expedite
if (network === "any") {
logger.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
Expand Down

0 comments on commit 987b535

Please sign in to comment.