mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: invert is error check (#5657)
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user