Function gear_pwasm_utils::pack_instance
source · pub fn pack_instance(
raw_module: Vec<u8>,
ctor_module: Module,
target: &TargetRuntime
) -> Result<Module, Error>
Expand description
If a pwasm 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