// handle 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
handle 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
handle 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 handle<
    S: Storage + 'static,
    A: Api + 'static,
    Q: Querier + 'static,
    T: Serialize + JsonSchema,
    U: DeserializeOwned + Clone + PartialEq + JsonSchema + fmt::Debug,
>(
    instance: &mut Instance<S, A, Q>,
    env: Env,
    msg: T,
) -> HandleResult<U> {
    let serialized_msg = to_vec(&msg)?;
    call_handle(instance, &env, &serialized_msg).expect("VM error")
}
pub fn handle < S : Storage + ' static , A : Api + ' static , Q : Querier + ' static , T : Serialize + JsonSchema , U : DeserializeOwned + Clone + PartialEq + JsonSchema + fmt :: Debug , > ( instance : & mut Instance < S , A , Q > , env : Env , msg : T , ) -> HandleResult < U > { let serialized_msg = to_vec ( & msg ) ? ; call_handle ( instance , & env , & serialized_msg ) . expect ( " " ) }
handle mimicks the call signature of the smart contracts.
handle mimicks the call signature of the smart contracts .
instance
&mut Instance<S, A, Q>
env
Env
msg
T