pub(crate) fn print_debug_returndata<H: HistoryMode>(
    memory: &SimpleMemory<H>,
    latest_returndata_ptr: Option<FatPointer>,
) {
    let returndata = if let Some(ptr) = latest_returndata_ptr {
        read_pointer(memory, ptr)
    } else {
        vec![]
    };

    tracing::trace!("0x{}", hex::encode(returndata));
}
Outputs the returndata for the latest call.
This is usually used to output the revert reason.
core/lib/multivm/src/versions/vm_latest/tracers/utils.rs