charge_computation

Function charge_computation 

Source
pub fn charge_computation(gas_used: &mut u64, ctx: &ArbPrecompileCtx, gas: u64)
Expand description

Charge precompile gas attributed to pure computation: constant per-method work, the framework resultCost for encoding return data, and any other non-resource-bound costs. Mirrors the reference framework’s Burn(Computation, ...) calls.