TypeChain icon indicating copy to clipboard operation
TypeChain copied to clipboard

Incomplete contract filters typing

Open echovl opened this issue 3 years ago • 1 comments

ethers allows to filter using arrays for each event argument, for example:

erc20.filters.Transfer(null, [addr1,addr2]

But this doesn't work with Typechain since the typing for the Transfer filter is something like this:

Transfer(from?: PromiseOrValue<string> | null , to?: PromiseOrValue<string> | null, value?: null): TransferEventFilter

echovl avatar Oct 10 '22 17:10 echovl

I am also facing this issue right now. Any progress on this?

GabrielBuragev avatar Jan 13 '23 14:01 GabrielBuragev