init_precompile_gas

Function init_precompile_gas 

Source
pub fn init_precompile_gas(
    gas_used: &mut u64,
    ctx: &ArbPrecompileCtx,
    input_len: usize,
)
Expand description

Initialize gas tracking for a precompile call: charge argsCost as L2Calldata and the OpenArbosState read (1 SLOAD = 800) as StorageAccessRead, mirroring the reference framework’s per-call dimensioned framework gas.