openethereum / sol-rs

Solaris - Solidity testing framework in Rust.
GNU General Public License v3.0
54 stars 14 forks source link

show line where contract call failed #11

Open snd opened 6 years ago

snd commented 6 years ago

if a contract call or deploy fails (due to revert, out of gas, etc) show the actual source line on which the failure occurred.

this would greatly improve the experience of writing and debugging tests!

truffle doesn't have this feature (yet).

could be extend by also dumping/showing the last known local and storage variables.

this could be a starting point: https://ethereum.stackexchange.com/questions/25479/how-to-map-evm-trace-to-contract-source/26216#26216

snd commented 6 years ago

related to #7