Add custom denom balance query

This commit is contained in:
Bogdan-Ștefan Neacșu
2021-12-13 17:28:59 +02:00
parent 3d973a8eb7
commit 233b4590e7
@@ -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,