From 25dd2ffa8e9bd613eb90023eaa50c605e748af3e Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 1 Dec 2023 18:50:37 +0100 Subject: [PATCH] fix: invert is error check --- crates/revm/revm-inspectors/src/tracing/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/revm/revm-inspectors/src/tracing/types.rs b/crates/revm/revm-inspectors/src/tracing/types.rs index b5e6415bf435..7f10a204f338 100644 --- a/crates/revm/revm-inspectors/src/tracing/types.rs +++ b/crates/revm/revm-inspectors/src/tracing/types.rs @@ -61,7 +61,7 @@ impl CallTrace { /// Returns true if the status code is an error or revert, See [InstructionResult::Revert] #[inline] pub fn is_error(&self) -> bool { - self.status.is_error() + !self.status.is_ok() } /// Returns true if the status code is a revert