-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contract.filters passing an array as OR related topic filter #437
Comments
That functionality isn't supported yet. It is coming though. There is a |
This has been added to 5.0.0-beta.185 and shoaled work for both the Contract and Interface classes. :) Thanks! :) |
I always feel bad commenting on closed issues, but it's often where the question and information is most relevant.
I'm trying to listen to As with most things in my life, I'm sure I've done something wrong, but I thought I was understanding the documentation and logic so well! |
The That filter API you linked to is for the Off topic, but as a quick example of what that filter would match, if the Contract filter API supported that would be:
What you likely want is two separate filters: const filterBurn = Contract.filters.Transfer(null, '0x0000000000000000000000000000000000000000'); The OR nature of filters gets away from you pretty quickly. It is a good idea for me to add filter address though. I will add that to my backlog for v6 which I'm tinkering with right now. :) Does that make sense? |
This absolutely makes sense, and similar to what I tried at first, but now realize I wasn't creating multiple It's been a long week. As always, thank you for your help! |
No worries. Glad to help! :) |
Is it possible to pass an array of topics (a.k.a. indexed values) to
contract.filters.MyEvent()
like I can do it to the members offilter.topics
that is passed toprovider.getLogs
?The text was updated successfully, but these errors were encountered: