Skip to content

Commit

Permalink
fix: query token balance
Browse files Browse the repository at this point in the history
  • Loading branch information
skidipap committed Dec 14, 2023
1 parent 468d3d3 commit e8244b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/src/lib/client/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use namada::types::masp::{BalanceOwner, ExtendedViewingKey, PaymentAddress};
use namada::types::storage::{BlockHeight, BlockResults, Epoch, Key, KeySeg};
use namada::types::token::{Change, MaspDenom};
use namada::types::{storage, token};
use namada_sdk::error::{is_pinned_error, Error, PinnedBalanceError};
use namada_sdk::error::{is_pinned_error, Error, PinnedBalanceError, QueryError};
use namada_sdk::masp::{Conversions, MaspAmount, MaspChange};
use namada_sdk::proof_of_stake::types::ValidatorMetaData;
use namada_sdk::rpc::{
Expand Down Expand Up @@ -337,6 +337,9 @@ pub async fn query_transparent_balance(
balance
);
}
Err(QueryError::NoSuchKey) => {
display_line!(context.io(), "Querying error: {:?}", QueryError::NoSuchKey);
}
Err(e) => {
display_line!(context.io(), "Querying error: {e}");
display_line!(
Expand Down

0 comments on commit e8244b6

Please sign in to comment.