Skip to content

Commit

Permalink
Standardize no balance response
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed May 3, 2024
1 parent bd7d339 commit cf66522
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/apps/src/lib/client/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,7 @@ async fn query_shielded_balance(
let mut shielded = context.shielded_mut().await;

let no_balance = || {
display_line!(
context.io(),
"No shielded {} balance found for given key",
token_alias
);
display_line!(context.io(), "{token_alias}: 0");
};

let balance = if no_conversions {
Expand Down

0 comments on commit cf66522

Please sign in to comment.