Function reth_primitives_traits::constants::gas_units::format_gas
source · pub fn format_gas(gas: u64) -> String
Expand description
Returns a formatted gas log, showing either:
- “Kgas”, or 1,000 gas
- “Mgas”, or 1,000,000 gas
- “Ggas”, or 1,000,000,000 gas
Depending on the magnitude of gas.