ethereum / eth-utils

Utility functions for working with ethereum related codebases.
https://eth-utils.readthedocs.io/en/latest/
MIT License
312 stars 150 forks source link

Pass message through to replaced exception #198

Closed wolovim closed 4 years ago

wolovim commented 4 years ago

What was wrong?

The replace_exception decorator swallows the original exception context. This prevents web3.py from handling revert messages when using eth_tester. Relevant issue: https://github.com/ethereum/web3.py/pull/1585.

How was it fixed?

Just passes the err through.

To-Do

Cute Animal Picture