Fixed early Contract filter unsubscribing.

This commit is contained in:
Richard Moore 2020-04-15 16:47:55 -04:00
parent 69f707762e
commit 2eb3823de4
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -721,7 +721,7 @@ export class Contract {
// If we have a poller for this, remove it
const emit = this._wrappedEmits[runningEvent.tag];
if (emit) {
if (!emit) {
this.provider.off(runningEvent.filter, emit);
delete this._wrappedEmits[runningEvent.tag];
}