pub fn instantiate<A, S, Q, M, U, W>(
    instance: &mut Instance<A, S, Q, W>,
    env: Env,
    info: MessageInfo,
    msg: M,
) -> ContractResult<Response<U>>
where
    A: BackendApi + 'static,
    S: Storage + 'static,
    Q: Querier + 'static,
    M: Serialize + JsonSchema,
    U: DeserializeOwned + CustomMsg,
    W: WasmVM + 'static,
{
    let serialized_msg = to_vec(&msg).expect("Testing error: Could not seralize request message");
    call_instantiate(instance, &env, &info, &serialized_msg).expect("VM error")
}
/// Mimicks the call signature of the smart contracts.
/// Thus it moves env and msg rather than take them as reference.
/// This is inefficient here, but only used in test code.
Mimicks the call signature of the smart contracts.
Thus it moves env and msg rather than take them as reference.
This is inefficient here, but only used in test code.
Mimicks the call signature of the smart contracts . Thus it moves env and msg rather than take them as reference . This is inefficient here but only used in test code .
pub fn instantiate<A, S, Q, M, U, W>(
    instance: &mut Instance<A, S, Q, W>,
    env: Env,
    info: MessageInfo,
    msg: M,
) -> ContractResult<Response<U>>
where
    A: BackendApi + 'static,
    S: Storage + 'static,
    Q: Querier + 'static,
    M: Serialize + JsonSchema,
    U: DeserializeOwned + CustomMsg,
    W: WasmVM + 'static,
{
    let serialized_msg = to_vec(&msg).expect("Testing error: Could not seralize request message");
    call_instantiate(instance, &env, &info, &serialized_msg).expect("VM error")
}
pub fn instantiate < A , S , Q , M , U , W > ( instance : & mut Instance < A , S , Q , W > , env : Env , info : MessageInfo , msg : M , ) -> ContractResult < Response < U > > where A : BackendApi + ' static , S : Storage + ' static , Q : Querier + ' static , M : Serialize + JsonSchema , U : DeserializeOwned + CustomMsg , W : WasmVM + ' static , { let serialized_msg = to_vec ( & msg ) . expect ( " " ) ; call_instantiate ( instance , & env , & info , & serialized_msg ) . expect ( " " ) }
Mimicks the call signature of the smart contracts.
Mimicks the call signature of the smart contracts .
instance
&mut Instance<A, S, Q, W>
env
Env
info
MessageInfo
msg
M
instance
&mut Instance<A, S, Q, W>
env
Env
info
MessageInfo
msg
M