Skip to content

Commit

Permalink
Trim account names and ignore empty strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreLeGuen committed Jan 30, 2024
1 parent 7532e21 commit 8f2ab83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ async fn get_txns_report(
let accounts: HashSet<String> = params
.accounts
.split(',')
.map(String::from)
.filter(|account| account != "near" && account != "system")
.map(|s| String::from(s.trim()))
.filter(|account| account != "near" && account != "system" && !account.is_empty())
.collect();

let include_balances = params.include_balances.unwrap_or(false);
Expand Down

0 comments on commit 8f2ab83

Please sign in to comment.