Function pwasm_utils::pack_instance
[−]
[src]
pub fn pack_instance(
raw_module: Vec<u8>,
ctor_module: Module
) -> Result<Module, Error>
If module has an exported "CREATE_SYMBOL" function we want to pack it into "constructor".
raw_module
is the actual contract code
ctor_module
is the constructor which should return raw_module