// 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<
    S: Storage + 'static,
    A: Api + 'static,
    Q: Querier + 'static,
    T: Serialize + JsonSchema,
>(
    instance: &mut Instance<S, A, Q>,
    msg: T,
) -> StdResult<QueryResponse> {
    let serialized_msg = to_vec(&msg)?;
    call_query(instance, &serialized_msg).expect("VM error")
}
pub fn query < S : Storage + ' static , A : Api + ' static , Q : Querier + ' static , T : Serialize + JsonSchema , > ( instance : & mut Instance < S , A , Q > , msg : T , ) -> StdResult < QueryResponse > { let serialized_msg = to_vec ( & msg ) ? ; call_query ( instance , & serialized_msg ) . expect ( " " ) }
query mimicks the call signature of the smart contracts.
query mimicks the call signature of the smart contracts .
instance
&mut Instance<S, A, Q>
msg
T