-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
How to get block timestamp for WebSockets event? #856
Comments
The polling-based providers track this extra state internally to prevent this from happening. I didn't properly cache the block emitted event in the WebSocketProvider to leverage this behaviour from the BaseProvider. I've got a fix locally and it should be published tomorrow. I'll update this ticket with the progress. Thanks! :) |
This should be fixed now in 5.0.0-beta.189. Please try it out and let me know if you still have any problems. :) |
I'm going to close this now, since I think it is fixed. If not, please re-open. Thanks! :) |
Thanks @ricmoo ; all is good on my end! |
Hi @ricmoo ,
WebSockets events are being received perfectly.
However, when an event comes in, the following returns null:
Any ideas on how to get the block timestamp when a Websocket event is received? Thanks for your help!
The text was updated successfully, but these errors were encountered: