This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Decoded panics (and maybe revert strings?) should have an appropriate field in interpretations
#6020
Labels
Currently, when printing out the decoded result of a revert, panics often get special handling so we can print out a human-readable interpretation of what the panic means (using the
panicString
function from debug-utils). However, checking for this case is still a pain.Instead, decoded panics should get an appropriate interpretation (in
interpretations
), and theReturndataDecodingInspector
should make use of this interpretation. ThepanicString
function can be moved inside Codec, and called fromReturndataDecodingInspector
. This would save some repeated annoying manual special cases.Edit: Arguably, this should apply to ordinary revert strings as well! However it's more important for panics.
Environment
truffle version
): 5.8.4The text was updated successfully, but these errors were encountered: