Add custom denom balance query
This commit is contained in:
@@ -234,6 +234,17 @@ impl<C> NymdClient<C> {
|
||||
self.client.get_balance(address, self.denom()?).await
|
||||
}
|
||||
|
||||
pub async fn get_denom_balance(
|
||||
&self,
|
||||
address: &AccountId,
|
||||
denom: Denom,
|
||||
) -> Result<Option<CosmosCoin>, NymdError>
|
||||
where
|
||||
C: CosmWasmClient + Sync,
|
||||
{
|
||||
self.client.get_balance(address, denom).await
|
||||
}
|
||||
|
||||
pub async fn get_contract_settings(&self) -> Result<ContractStateParams, NymdError>
|
||||
where
|
||||
C: CosmWasmClient + Sync,
|
||||
|
||||
Reference in New Issue
Block a user