pub fn query<A, S, Q, M, W>(
    instance: &mut Instance<A, S, Q, W>,
    env: Env,
    msg: M,
) -> ContractResult<QueryResponse>
where
    A: BackendApi + 'static,
    S: Storage + 'static,
    Q: Querier + 'static,
    M: Serialize + JsonSchema,
    W: WasmVM + 'static,
{
    let serialized_msg = to_vec(&msg).expect("Testing error: Could not seralize request message");
    call_query(instance, &env, &serialized_msg).expect("VM error")
}
// query 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
query 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
query 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 query<A, S, Q, M, W>(
    instance: &mut Instance<A, S, Q, W>,
    env: Env,
    msg: M,
) -> ContractResult<QueryResponse>
where
    A: BackendApi + 'static,
    S: Storage + 'static,
    Q: Querier + 'static,
    M: Serialize + JsonSchema,
    W: WasmVM + 'static,
{
    let serialized_msg = to_vec(&msg).expect("Testing error: Could not seralize request message");
    call_query(instance, &env, &serialized_msg).expect("VM error")
}
pub fn query < A , S , Q , M , W > ( instance : & mut Instance < A , S , Q , W > , env : Env , msg : M , ) -> ContractResult < QueryResponse > where A : BackendApi + ' static , S : Storage + ' static , Q : Querier + ' static , M : Serialize + JsonSchema , W : WasmVM + ' static , { let serialized_msg = to_vec ( & msg ) . expect ( " " ) ; call_query ( instance , & env , & serialized_msg ) . expect ( " " ) }
query mimicks the call signature of the smart contracts.
query mimicks the call signature of the smart contracts .
instance
&mut Instance<A, S, Q, W>
env
Env
msg
M
instance
&mut Instance<A, S, Q, W>
env
Env
msg
M