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

Abstract away additionalfeecontribution to its own struct #521

Merged

Conversation

0xBEEFCAF3
Copy link
Collaborator

This tuple was somewhat confusing, and I often forget what each value represents. Organizing this data into a struct makes it more intuitive and easier to work with.

Cherry-pick'd off #434

@coveralls
Copy link
Collaborator

coveralls commented Jan 31, 2025

Pull Request Test Coverage Report for Build 13078047990

Details

  • 21 of 21 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.08%) to 78.576%

Files with Coverage Reduction New Missed Lines %
payjoin/src/send/mod.rs 1 94.49%
Totals Coverage Status
Change from base Build 13059350773: 0.08%
Covered Lines: 3653
Relevant Lines: 4649

💛 - Coveralls

Copy link
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

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

Clean. I don't think it should be part of the pub API. No requests other than changing it to private or otherwise clarifying API visibility.

@@ -30,12 +30,19 @@ pub mod v2;

type InternalResult<T> = Result<T, InternalProposalError>;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "v2", derive(serde::Serialize, serde::Deserialize))]
pub struct AdditionalFeeContribution {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any good reason for this to be pub?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope. Thanks for catching that. Switched to pub(crate)

@0xBEEFCAF3 0xBEEFCAF3 force-pushed the arm/additionfeecontribution-abstraction branch from c149c3b to aa22001 Compare January 31, 2025 17:50
Copy link
Collaborator

@spacebear21 spacebear21 left a comment

Choose a reason for hiding this comment

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

ACK aa22001

Copy link
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

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

ACK aa22001

this commit was drafted in November :O

@DanGould DanGould merged commit 20620b2 into payjoin:master Feb 1, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants