-
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
if multiple events, return array #1048
Conversation
This fixes a bug where if a transaction emitted multiple of the same events, the transactionReceipt only returned 1 of them. We now return an object for the event if there is only 1. If there are multple of the same events, then we return an array of event objects
It would make it really hard to reason, as you sometimes you get arrays and other times you get objects. But sadly i have no better option either. ...
"MyMultipleEvent": [{...},{...}] // if multiply of the same event, it comes as array For the test, please instead of altering an existing one, add a new one instead. Thanks so much for your contribution! |
* return array of events if multiple This fixes a bug where if a transaction emitted multiple of the same events, the transactionReceipt only returned 1 of them. We now return an object for the event if there is only 1. If there are multple of the same events, then we return an array of event objects * update docs and create new test * remove spacing changes
This fixes a bug where if a transaction emitted multiple of the same
events, the transactionReceipt only returned 1 of them.
We now return an object for the event if there is only 1. If there are
multple of the same events, then we return an array of event objects