Skip to main content

deduct_gas

Function deduct_gas 

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

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