Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spl-token-cli: Add 'account-info' subcommand #532

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

t-nelson
Copy link
Contributor

Problem

spl-token-cli has no way to look up an SPL Token account's mint directly

Changes

Add an account-info subcommand

There's some dupe here that will be dropped once solana-labs/solana#12466 ships and we can implement OutputFormat in spl-token-cli

fixes #467

.value
.unwrap();
println!();
println_name_value("Address:", &address.to_string());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should take a look and see if println_name_value would improve the output of other subcommands (mostly note to self 🙂 )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I'm certain that it would!

While we're on the topic, changing the params to be AsRef<str> instead of &str might improve the ergonomics 😉

@t-nelson t-nelson merged commit ec9961c into solana-labs:master Sep 25, 2020
@t-nelson t-nelson deleted the token-cli-account-info branch September 25, 2020 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spl-token-cli: No way to look up mint by account
2 participants