Trait 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

Required Methods§

Source

fn gas_to_weight(gas: u64, without_base_weight: bool) -> Weight

Source

fn weight_to_gas(weight: Weight) -> u64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§