0

I'm currently using the expectRevert construction and then just printing things out to see the msg, but is there a way to test this via an assertion? perhaps expectRevertWithMessage or something of the like.

Thanks!

1 Answer 1

0

Yes, Forge does enable you to test your revert messages. It allows you to preview what your messages will look like once they are sent and enables you to make any changes before sending them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.