-
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
getPastEvents Error Empty outputs array given! #2582
Comments
Could you please add the complete example? |
Created a simple example on this repo https://github.com/patitonar/test-web3-getPastEvents |
Will test and if required fix it asap. |
Reproduced this same issue on |
I have also just seen this when updating web3js, previous version |
This got fixed with 2ce2412 and will be released today. |
I seem to be getting this same error when calling I could be missing something though, I'm currently knee deep in upgrading from |
I was having the same error after upgrading to May I suggest updating web3.eth.abi.decodeLog the same way it was done for EventLogDecoder ? Thanks! |
@hqblock, good catch! When I update web3.eth.abi.decodeLog with the same change on line 232, I can actually submit my transaction now: if (data && data !== '0x' && data !== '0x0') { ... } Note that, in my specific use case, checking for UPDATE: the getPastEvents() error I mentioned was unrelated and caused by my own stupidity. However, I'm pretty sure updating |
The correct if is: if (data && data !== '0x') {
....
} 0x0 should be handled as 0 or false. |
Description
I got this error when getting the events in the following code
The abi of the event:
Error Logs
Versions
The text was updated successfully, but these errors were encountered: