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

[CHIA-1218] Raise on too much decimal precision in CLI #18538

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

Quexington
Copy link
Contributor

Previously this would round:

uint64(0.00001) == uint64(0)

which led to users unexpectedly specifying zero as an amount when they were in fact making a mistake specifying the wrong units. This PR changes that case to be an error so that unexpected inputs don't result in unintentional actions.

@Quexington Quexington added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Aug 29, 2024
@hoffmang9
Copy link
Member

Woo!

@Quexington Quexington marked this pull request as ready for review August 29, 2024 19:38
@Quexington Quexington requested a review from a team as a code owner August 29, 2024 19:38
@Quexington Quexington requested a review from altendky August 29, 2024 20:13
@Quexington Quexington added the ready_to_merge Submitter and reviewers think this is ready label Sep 3, 2024
@pmaslana pmaslana merged commit c1d9a05 into main Sep 3, 2024
375 checks passed
@pmaslana pmaslana deleted the quex.cli_amount_rounding branch September 3, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants