Skip to main content

deduct_gas

Function deduct_gas 

Source
pub fn deduct_gas(
    gas_tracker: &mut GasTracker,
    additional_cost: u64,
) -> Result<(), TempoPrecompileError>
Expand description

Deducts gas from the remaining gas and returns an error if insufficient.