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
This was particularly useful as some methods might revert with the same custom error (in this example RequiresMarketplaceActiveMembership but with different parameters, based on what went wrong), and we were able to be very thorough in our tests, making them very resilient and not just "coverage for the sake of it".
It seems that someone thought it could be a good idea to strip anything in parentheses of revert messages, so now we can only match such as:
We recently upgraded our dependencies like follows:
to
We use custom errors extensively in our Solidity code. For example:
Before, we were able to match this nicely in our tests, such as:
This was particularly useful as some methods might revert with the same custom error (in this example
RequiresMarketplaceActiveMembership
but with different parameters, based on what went wrong), and we were able to be very thorough in our tests, making them very resilient and not just "coverage for the sake of it".It seems that someone thought it could be a good idea to strip anything in parentheses of revert messages, so now we can only match such as:
The text was updated successfully, but these errors were encountered: