Fixed run-checking non-filter Contract events (#1458).
This commit is contained in:
parent
725fe0aa32
commit
4a44865a8c
@ -917,7 +917,7 @@ export class BaseContract {
|
||||
|
||||
// If we have a poller for this, remove it
|
||||
const emit = this._wrappedEmits[runningEvent.tag];
|
||||
if (emit) {
|
||||
if (emit && runningEvent.filter) {
|
||||
this.provider.off(runningEvent.filter, emit);
|
||||
delete this._wrappedEmits[runningEvent.tag];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user