Trait vm::Exec

source · []
pub trait Exec {
    fn exec(self: Box<Self>, ext: &mut dyn Ext) -> ExecTrapResult<GasLeft>;
}
Expand description

Virtual Machine interface

Required methods

This function should be used to execute transaction. It returns either an error, a known amount of gas left, or parameters to be used to compute the final gas left.

Implementors