pub fn deduct_gas( gas: &mut u64, additional_cost: u64, ) -> Result<(), TempoPrecompileError>
Deducts gas from the remaining gas and returns an error if insufficient.