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

Respect precision while formatting Amount #2682

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 19, 2024

  1. Respect precision while formatting Amount

    All characters beyond the needed precision are truncated
    
    In the case of a SignedAmount the default precision is now 8
    just like the Amount
    
    Replaces self.fmt_value_in() with fmt_satoshi_in() so that
    FomartOptions is not made public which would be the requirements
    if self.fmt_value_in() is used.
    
    Tests have been improved to handle precision
    
    Resolves: rust-bitcoin#2136
    448-OG committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    d271513 View commit details
    Browse the repository at this point in the history