pub fn migrate<A, S, Q, M, U, W>(
    instance: &mut Instance<A, S, Q, W>,
    env: Env,
    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_migrate(instance, &env, &serialized_msg).expect("VM error")
}
// migrate 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
migrate 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
migrate 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 migrate<A, S, Q, M, U, W>(
    instance: &mut Instance<A, S, Q, W>,
    env: Env,
    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_migrate(instance, &env, &serialized_msg).expect("VM error")
}
pub fn migrate < A , S , Q , M , U , W > ( instance : & mut Instance < A , S , Q , W > , env : Env , 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_migrate ( instance , & env , & serialized_msg ) . expect ( " " ) }
migrate mimicks the call signature of the smart contracts.
migrate 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