⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@Harshdev098
Copy link
Contributor

@Harshdev098 Harshdev098 commented Jan 30, 2026

Exposed the PsbtInputError to the ffi layer and have added the tests for the implementation

closes #1276

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls
Copy link
Collaborator

coveralls commented Jan 30, 2026

Pull Request Test Coverage Report for Build 21513219768

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 83.19%

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin/src/core/psbt/mod.rs 0 2 0.0%
Totals Coverage Status
Change from base Build 21447062880: -0.01%
Covered Lines: 10140
Relevant Lines: 12189

💛 - Coveralls

@DanGould
Copy link
Contributor

Thanks for the MR. you can use language like the following next time to link to the relevant issue:

closes #1276

Signed-off-by: Harsh Dev Pathak <hiddenHaze@proton.me>
@Harshdev098 Harshdev098 force-pushed the expose-PsbtInputError branch from 7ed9fd8 to 8a35dc0 Compare January 30, 2026 10:49
@DanGould
Copy link
Contributor

DanGould commented Feb 2, 2026

Why did you write "Signed-off-by: Harsh Dev Pathak hiddenHaze@proton.me" in your commit? I have never seen that style before.

@Harshdev098
Copy link
Contributor Author

@DanGould I used git commit -s, which automatically adds the Signed-off-by line as part of the DCO sign-off

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.

https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--s

This isn't necessary for our project. It would be to include some description in the commit message however, following the rules in https://cbea.ms/git-commit/

}

#[cfg(test)]
mod tests {
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a general comment / open question, I'm not sure whether unit tests in payjoin-ffi are really useful because it's just wrapper code for the bindings generators to use. IMO it's more useful to test behavior in downstream languages since that's the code that will actually be used. However, writing these tests in every supported downstream language would get really repetitive and tedious. @chavic what do you think?


#[derive(Debug, PartialEq, Eq)]
pub(crate) enum InternalPsbtInputError {
pub enum InternalPsbtInputError {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the rationale for making these types pub? This one especially is named Internal so doesn't seem like one that should be exposed.

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.

Expose PSBT input error index in FFI error types

4 participants