Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

EventLog.removed has not been typed #4747

@hellowodl

Description

@hellowodl

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Listening to web3.eth.Contract.events.Event.on('changed', EventLog => {}) returns an EventLog without { removed: boolean }.
Web3's type definitions don't account for removed to exist.

Expected Behavior

The EventLog on the changed event, should return { removed: boolean } as well.

According to the documentation removed is added to the object, though typescript says otherwise.
https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#contract-events-return

Steps to Reproduce

Not applicable

Web3.js Version

1.7.0

Environment

No response

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.x1.0 related issuesBugAddressing a bugStaleHas not received enough activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions