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
I've been thinking about this very feature for some time now, it's great to see that more people also consider it useful. Many people drop SafeMath checks in order to get a custom error message, so providing a way to do this makes a lot of sense.
🧐 Motivation
It would be nice to have an option to add custom error message as a 3rd parameter to SafeMath contract functions.
📝 Details
One such example where it would be convenient is this:
uint256 finalFund = funds[msg.sender].sub(amount, "No enough funds!");
The text was updated successfully, but these errors were encountered: