You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Currently if we access the event properties via, property name it detects valid type.
(awaitmyContract.events.MyEvent()).on('data',log=>{console.log(log.returnValues.eventProp1)// will detect valid type console.log(log.returnValues[0])// will not detect valid type });
Expected Behavior
It should detect the type for indexed properties as well.
Steps to Reproduce
Explained above.
Web3.js Version
4.x
Environment
Operating System:
Browser:
Node.js Version:
NPM Version:
Anything Else?
I am not sure if this can be done with existing types. But can be looked into further.