Fix non-any Provider network emit (#495, #861).

This commit is contained in:
Richard Moore 2020-06-03 03:34:40 -04:00
parent 98bb58964b
commit d2ca4fb443
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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
@ -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;
}