pub fn new(
        store: S,
        event_handler: E,
        oracle: O,
        balance: B,
    ) -> Result<Mvm<S, E, O, B>, Error> {
        let config = load_vm_config(&store)?;

        Ok(Mvm {
            vm: MoveVM::new(),
            cost_table: config.gas_schedule,
            state: State::new(store, oracle),
            event_handler,
            bank: Bank::new(balance),
        })
    }
/// Creates a new move vm with given store and event handler.
Creates a new move vm with given store and event handler.
Creates a new move vm with given store and event handler .
pub fn new(
        store: S,
        event_handler: E,
        oracle: O,
        balance: B,
    ) -> Result<Mvm<S, E, O, B>, Error> {
        let config = load_vm_config(&store)?;
        Ok(Mvm {
            vm: MoveVM::new(),
            cost_table: config.gas_schedule,
            state: State::new(store, oracle),
            event_handler,
            bank: Bank::new(balance),
        })
    }
pub fn new ( store : S , event_handler : E , oracle : O , balance : B , ) -> Result < Mvm < S , E , O , B > , Error > { let config = load_vm_config ( & store ) ? ; Ok ( Mvm { vm : MoveVM :: new ( ) , cost_table : config . gas_schedule , state : State :: new ( store , oracle ) , event_handler , bank : Bank :: new ( balance ) , } ) }
Creates a new move vm with given store and event handler.
Creates a new move vm with given store and event handler .
store
S
event_handler
E
oracle
O
balance
B
store
S
event_handler
E
oracle
O
balance
B