Skip to content

Commit

Permalink
token-cli: Display all mint and account extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Oct 11, 2023
1 parent 88547d8 commit 5691302
Show file tree
Hide file tree
Showing 2 changed files with 230 additions and 108 deletions.
4 changes: 0 additions & 4 deletions token/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2168,9 +2168,6 @@ async fn command_display(config: &Config<'_>, address: Pubkey) -> CommandResult

let token_data = parse_token(&account_data.data, decimals);

// remove on next `solana-account-decoder` upgrade
let ui_confidential_transfer_extension = has_confidential_transfer(&account_data.data);

match token_data {
Ok(TokenAccountType::Account(account)) => {
let mint_address = Pubkey::from_str(&account.mint)?;
Expand Down Expand Up @@ -2198,7 +2195,6 @@ async fn command_display(config: &Config<'_>, address: Pubkey) -> CommandResult
epoch: epoch_info.epoch,
program_id: config.program_id.to_string(),
mint,
ui_confidential_transfer_extension,
};

Ok(config.output_format.formatted_string(&cli_output))
Expand Down
Loading

0 comments on commit 5691302

Please sign in to comment.