Skip to content

Commit

Permalink
Fix non-any Provider network emit (#495, #861).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 3, 2020
1 parent 98bb589 commit d2ca4fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ export class BaseProvider extends Provider {

super();

// Events being listened to
this._events = [];

this._emitted = { block: -2 };

this.formatter = new.target.getFormatter();

// If network is any, this Provider allows the underlying
Expand Down Expand Up @@ -267,13 +272,8 @@ export class BaseProvider extends Provider {

this._lastBlockNumber = -2;

// Events being listened to
this._events = [];

this._pollingInterval = 4000;

this._emitted = { block: -2 };

this._fastQueryDate = 0;
}

Expand Down

0 comments on commit d2ca4fb

Please sign in to comment.