Closed njgheorghita closed 5 years ago
Very likely that some normalization was accidentally removed. Full-ish stacktrace might make it a bit clearer where/why but somewhere a hex
address is making it's way into the backend that should have been converted to a bytes
address (canonical format).
Find the spot in your stacktrace where we exit the eth-tester
code and transition into the py-evm
code and trace your way up from there to figure out how the hex
formatted address is making it's way through.
pip freeze
outputWhat was wrong?
Trying to deploy a contract is broken when using
PyEVMBackend()
forWeb3.EthereumTesterProvider
.The final line breaks and raises this error...
How can it be fixed?
No clue, I spent a fair amount of time digging around
eth-tester
to try and resolve, but no luck. My best guess is that it's a result of the recenteth-tester
andpy-evm
upgrades. The same code works fine ifWeb3.EthereumTesterProvider()
is instantiated as empty (aka with implicitMockBackend
)