GasMutState

Trait GasMutState 

Source
pub trait GasMutState: GasState {
    // Required method
    fn record_gas(&mut self, gas: U256) -> Result<(), ExitError>;
}
Expand description

Mutable GasState. This simply allows recording an arbitrary gas.

Required Methods§

Source

fn record_gas(&mut self, gas: U256) -> Result<(), ExitError>

Record an arbitrary gas into the current gasometer.

Implementors§

Source§

impl<'config> GasMutState for State<'config>