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

CLI: better UX for accounts and implicit_accounts commands #1815

Merged

Conversation

thibault-martinez
Copy link
Member

No description provided.

Comment on lines +322 to +333
for account in accounts {
let output_id = account.output_id;
let account_id = account.output.as_account().account_id_non_null(&output_id);
let account_address = account_id.to_bech32(wallet.client().get_bech32_hrp().await?);

println_log_info!(
"{:<16} {output_id}\n{:<16} {account_id}\n{:<16} {account_address}\n",
"Output ID:",
"Account ID:",
"Account Address:"
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be factored out into a function bc you do the same for the implicit accounts, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not the same

@thibault-martinez thibault-martinez merged commit 0e2c8ed into iotaledger:2.0 Jan 9, 2024
20 checks passed
@thibault-martinez thibault-martinez deleted the cli-accounts-ux branch January 9, 2024 14:36
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.

4 participants