Skip to content

Commit

Permalink
Expanded type for queryFitler to allow string (#2882).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 14, 2022
1 parent 14bf407 commit 60da870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src.ts/index.ts
Expand Up @@ -1036,7 +1036,7 @@ export class BaseContract {
}
}

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

Expand Down

0 comments on commit 60da870

Please sign in to comment.