Skip to main content

create_eth_transfer_log

Function create_eth_transfer_log 

Source
pub fn create_eth_transfer_log(
    log_address: Address,
    from: Address,
    to: Address,
    value: U256,
) -> Log
Expand description

Creates a Transfer log (LOG3) for an ETH transfer, emitted from log_address: SYSTEM_ADDRESS for consensus EIP-7708 logs (Amsterdam+) or TRACE_TRANSFER_ADDRESS for eth_simulateV1 traceTransfers. Which of the two apply is decided in VM::push_eth_transfer_logs.