Skip to content

logIdx is calculated incorrectly #124

@zilm13

Description

@zilm13

logIdx is currently calculated incorrectly in both usages in Harmony. It starts with 0 on every tx, but should start on block, so first log in tx could easily be greater than 0.
Check specs: https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterchanges says the log index is relative to the block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions