Function query_module_data

Source
pub fn query_module_data<Q, T>(
    querier: &Q,
    contract_addr: T,
) -> Result<ModuleData, StdError>
where Q: Querier, T: Into<String>,
Expand description

This will make a raw_query to another module to determine the current version it claims to be. This should not be trusted, but could be used as a quick filter if the other module exists and claims to be a cw20-base module for example. (Note: you usually want to require interfaces not implementations of the contracts you compose with, so be careful of overuse)