Skip to content

Commit

Permalink
fix(cheatcodes): clarify vm.expectRevert error message (#8463)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhleung authored Jul 28, 2024
1 parent 66bc49e commit 741db53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cheatcodes/src/test/expect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ pub(crate) fn handle_expect_revert(
}
};

ensure!(!matches!(status, return_ok!()), "call did not revert as expected");
ensure!(!matches!(status, return_ok!()), "next call did not revert as expected");

// If None, accept any revert
let Some(expected_revert) = expected_revert else {
Expand Down

0 comments on commit 741db53

Please sign in to comment.