Skip to main content

load_account_delegated

Function load_account_delegated 

pub fn load_account_delegated<H>(
    host: &mut H,
    spec: SpecId,
    remaining_gas: u64,
    address: Address,
    transfers_value: bool,
    create_empty_account: bool,
) -> Result<(u64, u64, Bytecode, FixedBytes<32>), LoadError>
where H: Host + ?Sized,
Available on crate feature evm only.
Expand description

Loads accounts and its delegate account.

Assumption is that warm gas is already deducted.

Returns (regular_gas_cost, state_gas_cost, bytecode, code_hash). state_gas_cost is non-zero only when creating a new empty account (EIP-8037).