Skip to content

Commit

Permalink
fix: handle STX assets title
Browse files Browse the repository at this point in the history
  • Loading branch information
csgui committed Dec 21, 2022
1 parent d2800c0 commit fdc748e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/clarity-repl/src/repl/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,15 @@ impl Session {
let accounts = self.interpreter.get_accounts();
if accounts.len() > 0 {
let tokens = self.interpreter.get_tokens();
let headers = vec!["Address".to_string(), "uSTX".to_string()];
let mut headers = vec!["Address".to_string()];
for token in tokens.iter() {
if String::from("STX").eq(&String::from(token)) {
headers.push(String::from("uSTX"));
} else {
headers.push(String::from(token));
}
}

let mut headers_cells = vec![];
for header in headers.iter() {
headers_cells.push(Cell::new(&header));
Expand Down

0 comments on commit fdc748e

Please sign in to comment.