Incorrect Typing on contract.queryFilter
#2882
Labels
enhancement
New feature or improvement.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
minor-bump
Planned for the next minor version bump.
Ethers Version
5.6.2
Search Terms
No response
Describe the Problem
There's an incorrect type definition on the
queryFilter
method of theBaseContract
class. Theevent
argument's type on line 1041 is only used once in the method, on the call tothis._getRunningEvent
on the immediately following line.The type for the argument passed to
this._getRunningEvent
isEventFilter | string
, but the only allowed type for theevent
argument in thequeryFilter
method isEventFilter
. The type of theevent
argument on thequeryFilter
method should match the type in the_getRunningEvent
.Suggested change:
Code Snippet
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: