Guys, I am trying to get the balance of uusd of a smart contract from an other smart contract. Here is the code.
let uusd_balance: BalanceResponse = bank
.query(&BankQuery::Balance {
address: contract_address.to_string(),
denom: "uusd".to_string(),
})
Its not working. I get errors.
Here - “bank” is &QuerierWrapper
I get the error - expected enum cosmwasm_std::QueryRequest, found enum cosmwasm_std::BankQuery
How do I solve this?
Regards,
Aries