Skip to main content

validate_initial_tx_gas

Function validate_initial_tx_gas 

pub fn validate_initial_tx_gas(
    tx: impl Transaction,
    spec: SpecId,
    is_eip7623_disabled: bool,
    is_amsterdam_eip8037_enabled: bool,
    tx_gas_limit_cap: u64,
) -> Result<InitialAndFloorGas, InvalidTransaction>
Available on crate feature evm only.
Expand description

Validate initial transaction gas using the default GasParams for the given SpecId.

For custom gas parameters (e.g. configured on the context), use validate_initial_tx_gas_with_gas_params.