fix: invert is error check (#5657)

This commit is contained in:
Matthias Seitz
2023-12-01 19:05:44 +01:00
committed by GitHub
parent 346f135c56
commit ba544d746c

View File

@ -61,7 +61,7 @@ impl CallTrace {
/// Returns true if the status code is an error or revert, See [InstructionResult::Revert] /// Returns true if the status code is an error or revert, See [InstructionResult::Revert]
#[inline] #[inline]
pub fn is_error(&self) -> bool { pub fn is_error(&self) -> bool {
self.status.is_error() !self.status.is_ok()
} }
/// Returns true if the status code is a revert /// Returns true if the status code is a revert