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

Use parse::<Txid>() in place of encode::deserialize_hex() #15

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

Commits on Dec 3, 2024

  1. Use parse::<Txid> instead of encode::deserialize_hex

    Currently, in some places, we use the bespoke `encode::deserialize_hex`
    function to deserialize txid from a hex string. The `Txid` type provides a
    `FromStr` impl so we can use `parse::<Txid>()`. This makes the code
    more easily readable because its a common pattern in Rust.
    fedemagnani committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    6a465b4 View commit details
    Browse the repository at this point in the history