-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore fail
with a message
#583
Comments
I believe There also is |
I believe that you're referring to this change: 1432518#diff-d79529fa796b868bdba7d0be181244b6d3ee5d3ff0aecb1b5db2d47b78dfb05dL15-L17 and specifically this part of - function fail(string memory err) internal virtual {
- emit log_named_string("Error", err);
- fail();
- }
+ function fail() internal virtual {
+ vm.store(address(vm), bytes32("failed"), bytes32(uint256(1)));
+ _failed = true;
+ }
|
Back in forge-std v1.7 there was function
fail
inStdAssertions
that accepted the error message. As of v1.9.1 it's gone, which breaks existing tests and requires rewriting using much less convenientassertTrue(false, "Reason to fail")
.The text was updated successfully, but these errors were encountered: