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

Object Safety§

This trait is not object safe.

Implementors§