Function casper_execution_engine::core::runtime::instance_and_memory   [−][src]
pub fn instance_and_memory(
    parity_module: Module, 
    protocol_version: ProtocolVersion, 
    wasm_config: &WasmConfig
) -> Result<(ModuleRef, MemoryRef), Error>Expand description
Creates an WASM module instance and a memory instance.
This ensures that a memory instance is properly resolved into a pre-allocated memory area, and a host function resolver is attached to the module.
The WASM module is also validated to not have a “start” section as we currently don’t support running it.