Skip to main content

execute_default_code

Function execute_default_code 

Source
pub fn execute_default_code(
    vm: &mut VM<'_>,
    frame: &Frame,
    target: Address,
) -> Result<(bool, u64, Vec<Log>), VMError>
Expand description

Execute default code for an EOA target in a frame transaction.

When a frame targets an address with no deployed code (an EOA), the protocol runs built-in “default code” instead of executing a normal CALL. VERIFY runs the signature-check logic; SENDER and DEFAULT return successfully as if calling empty code (pinned EIP-8141 spec §“Default code” lines 412-413).

Returns (success, gas_used, logs).