Open
Description
Ethers Version
6.4.0
Search Terms
No response
Describe the Problem
It's patched in my local version and working to scan my "Shield" event which occurs across 2 consecutive blocks during automated tests. The event was completely lost - it took me about 6 hours today to track it down.
I believe this is a logical off-by-one bug - the fix is below. Hope it helps :)
Code Snippet
inside PollingEventSubscriber.#poll:
- filter.fromBlock = this.#blockNumber + 1;
+ filter.fromBlock = this.#blockNumber; // Updated to fix a bug in polling scans for the same filtered events across consecutive blocks (ie. during automated tests).
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response