Fixed early Contract filter unsubscribing.
This commit is contained in:
parent
69f707762e
commit
2eb3823de4
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user