Skip to content

Conversation

@storopoli
Copy link
Contributor

Closes #436

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 0a7b058

@tcharding
Copy link
Member

Thanks man. Can you squash the two commits together please. We use nightly to format because we use the same config file as rust-bitcoin.

/// The script key.
pub script_pubkey: ScriptBuf,
/// The transaction amount.
#[serde(default, with = "bitcoin::amount::serde::as_btc")]
Copy link
Member

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.

Copy link
Contributor Author

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

@storopoli storopoli force-pushed the fix/signed-amount-listunspent branch from 0a7b058 to 9541cad Compare January 2, 2026 12:01
@storopoli storopoli requested a review from tcharding January 2, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

corepc-types: ListUnspentItem's amount should be an Amount instead of SignedAmount

2 participants