Skip to main content

computation_units

Function computation_units 

Source
pub fn computation_units(
    gas_cost_summary: &GasCostSummary,
    gas_price: u64,
) -> u64
Expand description

The computation cost of gas_cost_summary in gas units, independent of the gas price the transaction paid. Rounds down, and is zero when gas_price is zero.