Open BlinkyStitt opened 3 years ago
I got the same problem on Optimism
I'm a bit confused that this is still happening.
This code should be injecting the middleware automatically: https://github.com/eth-brownie/brownie/blob/4b134d4be9d3dde14f93f389cef9651910c9520e/brownie/network/middlewares/geth_poa.py
Aha! It doesn't happen automatically because if the "latest" block is a local block and not a remote block, it doesn't raise an exception. And it looks like ganache sometimes adds a block for some reason. Not sure why they do that yet.
It is still a problem, and the #1493 is indeed fix that. Why is it not merged for 2 years?
Environment information
brownie
Version: 1.16.1ganache-cli
Version: 6.12.2What was wrong?
Works:
Errors:
I beleive some other commands will fail with the same error
How can it be fixed?
I'm not sure. Maybe the suggested middleware will work