-
Notifications
You must be signed in to change notification settings - Fork 43
fix!(types): ListUnspentItem's amount should be Amount #443
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
base: master
Are you sure you want to change the base?
fix!(types): ListUnspentItem's amount should be Amount #443
Conversation
tcharding
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 0a7b058
|
Thanks man. Can you squash the two commits together please. We use nightly to format because we use the same config file as |
| /// The script key. | ||
| pub script_pubkey: ScriptBuf, | ||
| /// The transaction amount. | ||
| #[serde(default, with = "bitcoin::amount::serde::as_btc")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is correct but unrelated to the PR. Took me a minute to work out why it was being removed.
Take pity on us poor reviewers please, throw changes like this in a separate patch that says what it does and save me a few clock cycles. This old brain is hard to kick into gear sometimes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean unrelated?
I've seen that all bitcoin::Amounts in other parts of the codebase do not need a #[serde(default, with = "bitcoin::amount::serde::as_btc")].
Everything squashed to a single commit in 9541cad
0a7b058 to
9541cad
Compare
jamillambert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9541cad
Closes #436