Trait pallet_evm::GasWeightMapping
source · pub trait GasWeightMapping {
// Required methods
fn gas_to_weight(gas: u64, without_base_weight: bool) -> Weight;
fn weight_to_gas(weight: Weight) -> u64;
}
Expand description
A mapping function that converts Ethereum gas to Substrate weight