pub fn execute<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_execute(instance, &env, &info, &serialized_msg).expect("VM error")
}
// execute 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
execute 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
execute 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 execute<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_execute(instance, &env, &info, &serialized_msg).expect("VM error")
}
pub fn execute < 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_execute ( instance , & env , & info , & serialized_msg ) . expect ( " " ) }
execute mimicks the call signature of the smart contracts.
execute 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