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

fix(pcli): help text for ibc withdrawals #2835

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Jul 13, 2023

Updates the docstrings for the pcli tx withdraw workflow. Still TK is better handling of the denoms, but deferring that change for now and just focusing on making the help text actually helpful.

@conorsch conorsch temporarily deployed to smoke-test July 13, 2023 22:06 — with GitHub Actions Inactive
let amount = Amount::try_from(amount.clone()).unwrap();
let denom = asset::REGISTRY.parse_denom(denom).ok_or_else(|| {
anyhow::anyhow!(format!("unable to parse denomination '{}'", denom))
})?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Withdrawing penumbra throws an error, but sending upenumbra does not. That's confusing. We should look for opportunities to reconcile the "base denom" vs "display denom" nomenclature throughout user-facing views.

Copy link
Member

Choose a reason for hiding this comment

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

Ideally there shouldn't be any reconciliation necessary, since the command line tooling should work with any known unit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we address the TODO about parsing the denom and amount from a concatenated string, as we do with pcli tx send, this problem should go away.

@conorsch conorsch temporarily deployed to smoke-test July 14, 2023 16:43 — with GitHub Actions Inactive
Updates the docstrings for the `pcli tx withdraw` workflow.
Still TK is better handling of the denoms, but deferring that change for
now and just focusing on making the help text actually helpful.
@conorsch conorsch temporarily deployed to smoke-test July 14, 2023 22:32 — with GitHub Actions Inactive
@conorsch conorsch marked this pull request as ready for review July 14, 2023 23:07
@hdevalence hdevalence merged commit 1f998d2 into main Jul 19, 2023
8 checks passed
@hdevalence hdevalence deleted the pcli-withdrawal-help-text branch July 19, 2023 10:32
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.

2 participants