[][src]Function xwasm_utils::pack_instance

pub fn pack_instance(
    raw_module: Vec<u8>,
    ctor_module: Module,
    target: &TargetRuntime
) -> Result<Module, Error>

If a pxwasm module has an exported function matching "create" symbol we want to pack it into "constructor". raw_module is the actual contract code ctor_module is the constructor which should return raw_module