Function instance_from_reused_module

Source
pub fn instance_from_reused_module<A, S, Q>(
    (engine, module): (Engine, Module),
    backend: Backend<A, S, Q>,
    options: InstanceOptions,
) -> VmResult<Instance<A, S, Q>>
where A: BackendApi + 'static, S: Storage + 'static, Q: Querier + 'static,
Expand description

This is the only Instance constructor that can be called from outside of cosmwasm-vm, e.g. in test code that needs a customized variant of cosmwasm_vm::testing::mock_instance*.