ethereum / web3.py

A python interface for interacting with the Ethereum blockchain and ecosystem.
http://web3py.readthedocs.io
MIT License
5k stars 1.7k forks source link

catch eth-abi DecodeError on failed tester provider make_request #3271

Closed pacrob closed 7 months ago

pacrob commented 7 months ago

What was wrong?

eth-abi v5.0.1 introduced a new InvalidPointer exception type. In EthereumTesterProvider->_make_request, we catch the InsufficientDataBytes exception, but no other types of decoding errors. Specifically, this caused 2 vyper tests to start failing.

How was it fixed?

Instead of catching just the InsufficientDataBytes exception, catch its parent DecodingError

Todo:

Cute Animal Picture

image