forked from simolus3/web3dart
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Event Filtering broken without Websockets #121
Comments
I've decided now to locally update our generated bindings to use getLogs instead of events, but it might be good either way to fix this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've been working on an app that tries to query some events and the event filtering seems to be a bit broken. We're using "https://rpc.public.zkevm-test.net" as our RPC provider.
If we initialize the Web3Client without a socket connector, the event filtering fails with
If we initialize the Web3client with a bogus websocket connection like:
The filtering correctly returns the events
but the websocket connection errors (as expected)
I think the issue is that
get_Logs
is only called when a socketConnector is available (even though it can be used on a regular http connection).It works flawlessly if I modify the code to do this:
The text was updated successfully, but these errors were encountered: