/// Create or get cached default VM
Create or get cached default VM
Create or get cached default VM
pub fn default_vm<T, E>(event_handler: E) -> impl move_vm::Vm
where
    T: StorageMap<Vec<u8>, Vec<u8>, Query = Option<Vec<u8>>>,
    E: EventHandler,
{
    let store: VmStorageAdapter<T> = Default::default();
    // let event_handler = E::default();
    Mvm::new(store, event_handler)
}
pub fn default_vm < T , E > ( event_handler : E ) -> impl move_vm :: Vm where T : StorageMap < Vec < u8 > , Vec < u8 > , Query = Option < Vec < u8 > > > , E : EventHandler , { let store : VmStorageAdapter < T > = Default :: default ( ) ; // let event_handler = E::default(); Mvm :: new ( store , event_handler ) }
Create or get cached default VM
Create or get cached default VM
event_handler
E