Skip to content

Commit 60da870

Browse files
committedAug 14, 2022
Expanded type for queryFitler to allow string (#2882).

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/contracts/src.ts/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ export class BaseContract {
10361036
}
10371037
}
10381038

1039-
queryFilter(event: EventFilter, fromBlockOrBlockhash?: BlockTag | string, toBlock?: BlockTag): Promise<Array<Event>> {
1039+
queryFilter(event: EventFilter | string, fromBlockOrBlockhash?: BlockTag | string, toBlock?: BlockTag): Promise<Array<Event>> {
10401040
const runningEvent = this._getRunningEvent(event);
10411041
const filter = shallowCopy(runningEvent.filter);
10421042

0 commit comments

Comments
 (0)
Please sign in to comment.