-
Notifications
You must be signed in to change notification settings - Fork 795
eth_newFilter doesn't return any logs #51
Comments
Hi, this is not an issue! You are creating a blank filter, which won't find the event! You need to set the |
I tried it again, with the tokio feature The transaction: https://kovan.etherscan.io/tx/0x231617618c603043d6ddb9440df6cf643df63bc51704598ecc36b524d7db9dda The output from my test program:
If I flip back to |
Hi @Vypo I hope this can be useful to you. https://github.com/roynalnaruto/shuffler repository implements streaming a filter. More specifically:
As discussed on the ethers-rs dev channel, filters are not supported by Infura (except the new blocks filter, which is supported). A localhost ganache instance can be used to test though (have a look at the ERC20 binding and you could try to stream on an event filter on an ERC20 contract. |
@roynalnaruto I believe that infura supports filters on their WebSocket interface. My previous comment was generated while running against infura's kovan endpoint, and it did output the event from my contract, but only while using the If you could humor me and try to reproduce my issue by adding the |
Let me try and use the |
@Vypo @gakonst So I tried the following filters:
With both rt-threadedWith the rt-coreWith the neitherWith both features disabled, the behaviour is the same as the one when |
Hey! I'm also having this issue. Does switching to async-std work? |
The fix in #61 should work, please re-open if you can still reproduce with latest master! Thank you for finding this |
Version
Platform
Linux XPS-15-9570 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Description
Using
eth_newFilter
doesn't seem to return any events. I've never used the ethers.js equivalent, so I suspect it's a problem on my end.I tried this code:
https://github.com/Vypo/ethers-newfilter
With this contract:
I expected to see this happen: Logs to be printed to the terminal.
Instead, nothing happened.
The text was updated successfully, but these errors were encountered: