pub fn pass_command<S: Storage, A: Api, Q: Querier>(
    deps: &mut Extern<S, A, Q>,
    env: Env,
    contract_addr: HumanAddr,
    msg: Binary,
) -> HandleResult {
    let config: Config = read_config(&deps.storage)?;
    if config.owner != deps.api.canonical_address(&env.message.sender)? {
        return Err(StdError::unauthorized());
    }

    Ok(HandleResponse {
        messages: vec![CosmosMsg::Wasm(WasmMsg::Execute {
            contract_addr,
            msg,
            send: vec![],
        })],
        log: vec![],
        data: None,
    })
}
// just for by passing command to other contract like update config
just for by passing command to other contract like update config
just for by passing command to other contract like update config
pub fn pass_command<S: Storage, A: Api, Q: Querier>(
    deps: &mut Extern<S, A, Q>,
    env: Env,
    contract_addr: HumanAddr,
    msg: Binary,
) -> HandleResult {
    let config: Config = read_config(&deps.storage)?;
    if config.owner != deps.api.canonical_address(&env.message.sender)? {
        return Err(StdError::unauthorized());
    }
    Ok(HandleResponse {
        messages: vec![CosmosMsg::Wasm(WasmMsg::Execute {
            contract_addr,
            msg,
            send: vec![],
        })],
        log: vec![],
        data: None,
    })
}
pub fn pass_command < S : Storage , A : Api , Q : Querier > ( deps : & mut Extern < S , A , Q > , env : Env , contract_addr : HumanAddr , msg : Binary , ) -> HandleResult { let config : Config = read_config ( & deps . storage ) ? ; if config . owner != deps . api . canonical_address ( & env . message . sender ) ? { return Err ( StdError :: unauthorized ( ) ) ; } Ok ( HandleResponse { messages : vec ! [ CosmosMsg Wasm ( WasmMsg Execute { contract_addr msg send vec [ ] } ) ] , log : vec ! [ ] , data : None , } ) }
just for by passing command to other contract like update config
just for by passing command to other contract like update config
deps
&mut Extern<S, A, Q>
env
Env
contract_addr
HumanAddr
msg
Binary