You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using event filters (eth_newFilter), neither block nor topic arguments are honored; all(?) events from the current block are returned.
To Reproduce
Steps to reproduce the behavior:
See code snippet below.
Expected behavior
Event logs are returned relevant to the block(s) and topic(s) requested.
Actual behavior
All event logs from the current block are returned, including Transfers and other unrequested events.
Additional context
python 3.9 with web3.py installed
Added similar BSC network call for reference/control
fromweb3importWeb3cronos_block=204485# Random block in the pasttopic='0x4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e38426'cronos=Web3(Web3.HTTPProvider('https://evm-cronos.crypto.org'))
test_filter=cronos.eth.filter({'fromBlock': cronos_block, 'toBlock': cronos_block, 'topics': [topic]})
print('Cronos Target Block', target_block, '| Received Block', test_filter.get_all_entries()[0].blockNumber)
bsc_block=12935778bsc=Web3(Web3.HTTPProvider('https://bsc-dataseed.binance.org'))
test_filter=bsc.eth.filter({'fromBlock': bsc_block, 'toBlock': bsc_block, 'topics': [topic]})
print('BSC Target Block', target_block, '| Received Block', test_filter.get_all_entries()[0].blockNumber)
outputs
Cronos Target Block 204485 | Received Block 264670
BSC Target Block 12935778 | Received Block 12935778
The text was updated successfully, but these errors were encountered:
Hi @tomtau - Looks like this has been fixed upstream (evmos/ethermint#865). Hoping this can be live on Cronos soon, it will open up a lot of important analytics work for projects!
Hi @tomtau - Looks like this has been fixed upstream (tharsis/ethermint#865). Hoping this can be live on Cronos soon, it will open up a lot of important analytics work for projects!
I think the fix has already been included in Cronos releases, closing for now, feel free to reopen if still exists.
Describe the bug
When using event filters (
eth_newFilter
), neither block nor topic arguments are honored; all(?) events from the current block are returned.To Reproduce
Steps to reproduce the behavior:
See code snippet below.
Expected behavior
Event logs are returned relevant to the block(s) and topic(s) requested.
Actual behavior
All event logs from the current block are returned, including Transfers and other unrequested events.
Additional context
python 3.9 with web3.py installed
Added similar BSC network call for reference/control
outputs
The text was updated successfully, but these errors were encountered: