Skip to content

Wrong (Unclear?) property specification in ethers.Log #4960

Open
@oswaldoleal

Description

@oswaldoleal

Suggestion

Inside the provider.Log definition the specifications for the index and transactionIndex properties seem to be swapped.

When in the context of a Log, the transactionIndex property name should refer to the index of a the log's transaction within the block
while the index property should refer to the log's index within a transaction/block.

The implementation is fine, but the documentation being swapped is missleading. Either, the definitions are wrong or the property names are wrong (unclear at the very least)

Images of the documentation

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation related issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions