Skip to content

Is event index in parsed events array as reliable as logIndex? #2060

Answered by zemse
metsawyr asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @metsawyr, can you confirm if you're referring to Contract.interface.parseLogs ? because there is a Contract.interface.parseLog but not parseLogs (the s is not there) and that returnes a single parsedLog with type LogDescription (source).

Also, the logIndex is not the index of the respective event in the transaction, but in the block.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@metsawyr
Comment options

Answer selected by metsawyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants