TreasureProject / treasure-marketplace-contracts

17 stars 9 forks source link

Revert errors could be more machine friendly #57

Closed ghoul-sol closed 2 years ago

ghoul-sol commented 2 years ago

Consider having a standard structure for revert error strings to help frontends look up error descriptions.

fulldecent commented 2 years ago

I agree that revert error text could be improved. One convention I have seen is that they will start with ContractName:.

ghoul-sol commented 2 years ago

I think this is a good candidate for the next version. I'll add ContractName: prefix for now.