Event listeners with filtering, what is the expected behavior? #4892
Unanswered
markszente
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have discovered an interesting behavior in event listeners. To put it short, event parameters are not destructed when you apply filtering. For reference, the docs say
So, from the examples, this would work as expected:
This, however, would not:
In the second example,
from
is actually the event object itself, with the rest of the arguments being undefined.Tested it with
6.13.4
, both on a local Hardhat network, and Ethereum mainnet with Alchemy.Beta Was this translation helpful? Give feedback.
All reactions