You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill this section in if you know how this could or should be fixed.
The text was updated successfully, but these errors were encountered:
antazoey
changed the title
ContractLogicError from custom exception contains stringified bytes data
ContractLogicError from custom exception contains stringified bytes instead of hex str
Mar 14, 2023
What was wrong?
Currently, when you have a custom Solidity exeption type like:
and you purposely trigger the error, you get an exception with the following message:
It is great! But when parsing into a python script, it can be awkward because it is a bytes string enclosed within an actual string.
How can it be fixed?
Before putting the reason in the exception message, convert it to a hex str such that the output is:
Fill this section in if you know how this could or should be fixed.
The text was updated successfully, but these errors were encountered: