Skip to main content

get_gas_price_or_default

Function get_gas_price_or_default 

Source
pub fn get_gas_price_or_default(gas_price: Option<u64>) -> u64
Expand description

Gets the gas price or returns the default value if not provided.

§Arguments

  • gas_price - An optional gas price value.

§Returns

The gas price or the default gas price if not provided.