From 741db53f3dfdcbe8c935e52492e5a0b7058f4169 Mon Sep 17 00:00:00 2001 From: "Nathan H. Leung" Date: Sun, 28 Jul 2024 02:20:28 -0700 Subject: [PATCH] fix(cheatcodes): clarify vm.expectRevert error message (#8463) --- crates/cheatcodes/src/test/expect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cheatcodes/src/test/expect.rs b/crates/cheatcodes/src/test/expect.rs index 4dc53550832c..80d2417ec375 100644 --- a/crates/cheatcodes/src/test/expect.rs +++ b/crates/cheatcodes/src/test/expect.rs @@ -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 {