Use the renamed balance function (#971)

This commit is contained in:
Bogdan-Ștefan Neacşu
2021-12-16 17:36:50 +02:00
committed by GitHub
parent c1e809fd99
commit 63bb35e1a1
@@ -58,7 +58,10 @@ pub async fn connect_with_mnemonic(
pub async fn get_balance(
state: tauri::State<'_, Arc<RwLock<State>>>,
) -> Result<Balance, BackendError> {
match client!(state).get_balance(client!(state).address()).await {
match client!(state)
.get_mixnet_balance(client!(state).address())
.await
{
Ok(Some(coin)) => {
let coin = Coin::new(
&coin.amount.to_string(),