diff --git a/crates/evm/traces/src/decoder/precompiles.rs b/crates/evm/traces/src/decoder/precompiles.rs index 5a8048c77240b..f0d7fe94d47b8 100644 --- a/crates/evm/traces/src/decoder/precompiles.rs +++ b/crates/evm/traces/src/decoder/precompiles.rs @@ -94,11 +94,13 @@ pub(super) fn decode(trace: &CallTrace, _chain_id: u64) -> Option return None, }; + let return_data = + if trace.address == IDENTITY { Some(hex::encode_prefixed(&trace.output)) } else { None }; + Some(DecodedCallTrace { label: Some("PRECOMPILES".to_string()), call_data: Some(DecodedCallData { signature: signature.to_string(), args }), - // TODO: Decode return data too. - return_data: None, + return_data, }) }