Struct abstract_sdk::Modules
source · pub struct Modules<'a, T: ModuleInterface> { /* private fields */ }
Implementations§
source§impl<'a, T: ModuleInterface> Modules<'a, T>
impl<'a, T: ModuleInterface> Modules<'a, T>
sourcepub fn module_address(&self, module_id: ModuleId<'_>) -> AbstractSdkResult<Addr>
pub fn module_address(&self, module_id: ModuleId<'_>) -> AbstractSdkResult<Addr>
Retrieve the address of an application in this Account.
This should not be used to execute messages on an Api
.
Use Modules::api_request(..)
instead.
sourcepub fn module_version(
&self,
module_id: ModuleId<'_>
) -> AbstractSdkResult<ContractVersion>
pub fn module_version( &self, module_id: ModuleId<'_> ) -> AbstractSdkResult<ContractVersion>
Retrieve the version of an application in this Account. Note: this method makes use of the Cw2 query and may not coincide with the version of the module listed in VersionControl.