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.

PromiEvent does not follow the event chaining.  #5171

@nazarhussain

Description

@nazarhussain

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently the PromiEvent first subscription to the event returns the undefined.

Expected Behavior

It should return the PromiEvent object to allow the event chaining.

Steps to Reproduce

await contract.methods.myMethod().send().on('transationHash', console.log).on('receipt', console.log);

Web3.js Version

4.x

Environment

No response

Anything Else?

No response

Metadata

Metadata

Assignees

Labels

4.x4.0 relatedBugAddressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions