-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving of the EventLog interface #2436
Comments
The reason its called like Thats why i called it Its also important that this is the same output for all functions that return events or decoded function call outputs. They should all look the same. |
@frozeman renamed it to outputs which I think is the most intuitive way.
Yes, the decodeLog method will still exist. |
The I think having the indexes as well there is important to be able to iterate and access unnamed parameters. |
Yes, the contract transaction receipts do have encoded logs. I'm decoding them with these two objects: https://github.com/ethereum/web3.js/tree/1.0/packages/web3-eth-contract/src/decoders I think having them combined in one property is confusing. Having of named return values in an outputs property and adding an outputsByKey property with an array is probably also confusing. Another solution would be just to return an Array of inputs but I think this isn't intuitive. |
Because the contained items in the {
properties: {from: "0x0000000000000000000000000000000000000000", to: "0x9CC9a2c777605Af16872E0997b3Aeb91d96D5D8c", tokens: "100000000000000000000000000"}
} Edit: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions |
Improving of the EventLog interface
Currently the indexed and the non-indexed decoded returned input parameters are returned within the
returnValues
property of theEventLog
object. This property does contain an object which contains the returned topics and data properties encoded and added by the input name and input index.The
returnValues
property does exist in a returned transaction receipt of aContract
method call or when you subscribe to aContract
event.decodeLog(inputs: Array, data: string, topics: Array)
Feel free to write a comment with your opinion about it.
Expected behavior
Actual behavior
Steps to reproduce the behavior
Versions
Web3.js latest version
The text was updated successfully, but these errors were encountered: