From 4a44865a8c22adb9c55d5c37a81ee46ebc68228c Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 18 Apr 2021 19:23:27 -0400 Subject: [PATCH] Fixed run-checking non-filter Contract events (#1458). --- packages/contracts/src.ts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contracts/src.ts/index.ts b/packages/contracts/src.ts/index.ts index 89c86c5f1..0d82660fc 100644 --- a/packages/contracts/src.ts/index.ts +++ b/packages/contracts/src.ts/index.ts @@ -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]; }