-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web3.eth.getBlock is broken with PyEVMBackend #1213
Comments
@pipermerriam The problem was with how I was instantiating my class using the This is what was broken... from web3 import Web3
from eth_tester import PyEVMBackend
w3 = Web3(Web3.EthereumTesterProvider(PyEVMBackend())) This is what I should have been doing / What works fine. from web3 import Web3
from eth_tester import PyEVMBackend, EthereumTester
w3 = Web3(Web3.EthereumTesterProvider(EthereumTester(PyEVMBackend()))) Basically, the inbound tx normalization happens in the I'm unsure as to exactly where I saw the first (aka broken) pattern, but it seems to me that maybe the best fix is something in the docs explaining how to instantiate w/ |
When @kclowes and I looked over this today I had the thought that we could add a check to |
pip freeze
outputWhat was wrong?
Using
web3.eth.getBlock()
method is broken in v5 alpha - when using aPyEVMBackend
- the same code works fine when usingMockBackend
.The final line breaks with the following error
How can it be fixed?
Not sure, I spent some time digging around
eth-tester
/py-evm
to try and find a solution, but no luck. Though, this is most likely related to update in those dependencies in v5.The text was updated successfully, but these errors were encountered: