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
{{ message }}
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
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:
from crypto-org-chain/cronos#226
The text was updated successfully, but these errors were encountered: