Fixed run-checking non-filter Contract events (#1458).

This commit is contained in:
Richard Moore 2021-04-18 19:23:27 -04:00
parent 725fe0aa32
commit 4a44865a8c
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

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