Skip to content

Commit

Permalink
Appease Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
elmattic committed Jan 6, 2025
1 parent 8aad446 commit bc60b69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpc/methods/eth/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ fn build_trace(
//
// NOTE: The FFI currently folds all unknown syscall errors into "sys assertion
// failed" which is turned into SysErrFatal.
if !address.is_empty() {
if Into::<ExitCodeV4>::into(trace.msg_rct.exit_code) == ExitCodeV4::SYS_INSUFFICIENT_FUNDS {
return Ok((None, None));
}
if !address.is_empty()
&& Into::<ExitCodeV4>::into(trace.msg_rct.exit_code) == ExitCodeV4::SYS_INSUFFICIENT_FUNDS
{
return Ok((None, None));
}

// We may fail before we can even invoke the actor. In that case, we have no 100% reliable
Expand Down

0 comments on commit bc60b69

Please sign in to comment.