diff --git a/crates/shared/src/bad_token/trace_call.rs b/crates/shared/src/bad_token/trace_call.rs index 2f7550d8d6..481cdebb81 100644 --- a/crates/shared/src/bad_token/trace_call.rs +++ b/crates/shared/src/bad_token/trace_call.rs @@ -263,11 +263,19 @@ impl TraceCallDetector { let gas_in = match ensure_transaction_ok_and_get_gas(&traces[1])? { Ok(gas) => gas, - Err(reason) => return Ok(TokenQuality::bad(reason)), + Err(reason) => { + return Ok(TokenQuality::bad(format!( + "can't transfer into settlement contract: {reason}" + ))) + } }; let gas_out = match ensure_transaction_ok_and_get_gas(&traces[4])? { Ok(gas) => gas, - Err(reason) => return Ok(TokenQuality::bad(reason)), + Err(reason) => { + return Ok(TokenQuality::bad(format!( + "can't transfer out of settlement contract: {reason}" + ))) + } }; let balance_before_in = match decode_u256(&traces[0]) { @@ -354,8 +362,8 @@ fn ensure_transaction_ok_and_get_gas(trace: &BlockTrace) -> Result call,