Skip to content

Commit

Permalink
Fixed early Contract filter unsubscribing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 15, 2020
1 parent 69f7077 commit 2eb3823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 2eb3823

Please sign in to comment.