How to get event args by name when using parseLog #4502
Unanswered
haseebrabbani
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code snippet which works as I expect in v5 (i.e. the
parsedLog.args
property is indexed by integer position as well as string name)Here is the v5 result (which also includes string keys):
When I use v6 with the same code, the
parsedLog.args
field looks like this (i.e. only position-based index):How can I also access the args by their name in v6? The inline documentation for
Result
implies this should work:Beta Was this translation helpful? Give feedback.
All reactions