On Polygon networks, anvil in forked development mode doesn't throw ExtraDataLengthError on the first block. So, I changed the GethPOAMiddleware to try both the first block and latest block. This is similar to apeworx implementation here:
https://github.com/ApeWorX/ape-hardhat/pull/133
What I did
On Polygon networks, anvil in forked development mode doesn't throw
ExtraDataLengthError
on the first block. So, I changed the GethPOAMiddleware to try both the first block and latest block. This is similar to apeworx implementation here: https://github.com/ApeWorX/ape-hardhat/pull/133Related issue: #1762
How I did it
How to verify it
ran anvil locally
connect web to anvil
verify we hit the exception on latest block, but not on first block
Checklist