Skip to main content

adjusted_initial_gas

Function adjusted_initial_gas 

Source
fn adjusted_initial_gas(
    spec: TempoHardfork,
    evm_initial_gas: u64,
    init_and_floor_gas: &InitialAndFloorGas,
) -> InitialAndFloorGas
Expand description

Computes the adjusted initial gas for AA transaction execution.

For T1+: Uses evm_initial_gas which includes key_authorization gas tracking. For pre-T1: Uses init_and_floor_gas directly to maintain backward compatibility, since pre-T1 doesn’t have key_authorization gas tracking and Genesis has special handling where nonce_2d_gas is added to init_and_floor_gas but not to evm.initial_gas.