Skip to content

Commit

Permalink
Expanded type for queryFitler to allow string (ethers-io#2882).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent ae10b0f commit de8da6b
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 de8da6b

Please sign in to comment.