Skip to content

Restore ScriptBuf and Witness test imports - #1755

Merged
spacebear21 merged 1 commit into
payjoin:masterfrom
spacebear21:fix-scriptbuf-witness-test-imports
Jul 22, 2026
Merged

Restore ScriptBuf and Witness test imports#1755
spacebear21 merged 1 commit into
payjoin:masterfrom
spacebear21:fix-scriptbuf-witness-test-imports

Conversation

@spacebear21

Copy link
Copy Markdown
Collaborator

The v2 receive test module lost ScriptBuf and Witness from its bitcoin import after two branches merged with a silent semantic conflict. Commit 4548e25 shrank the import to {Amount, FeeRate} because it deleted the code that used them, while PR #1718 (merged against a stale base) added new test code that uses ScriptBuf and Witness. The 3-way merge kept master's shrunken import alongside the PR's new usages, breaking cargo test compilation on master.

Re-add both types to the import so the lib test build compiles.

Authored by Claude Opus 4.8

Pull Request Checklist

Please confirm the following before requesting review:

The v2 receive test module lost `ScriptBuf` and `Witness` from its
bitcoin import after two branches merged with a silent semantic
conflict. Commit 4548e25 shrank the import to `{Amount, FeeRate}`
because it deleted the code that used them, while PR payjoin#1718 (merged
against a stale base) added new test code that uses `ScriptBuf` and
`Witness`. The 3-way merge kept master's shrunken import alongside the
PR's new usages, breaking `cargo test` compilation on master.

Re-add both types to the import so the lib test build compiles.
@spacebear21
spacebear21 requested a review from DanGould July 22, 2026 00:40
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 29880922014

Warning

No base build found for commit d35ee58 on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 86.374%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 16124
Covered Lines: 13927
Line Coverage: 86.37%
Coverage Strength: 341.94 hits per line

💛 - Coveralls

@DanGould

Copy link
Copy Markdown
Member

what the skibidi how did this not get caught?

@DanGould DanGould left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

caused by stape base CI. I see

@spacebear21
spacebear21 merged commit c79ab48 into payjoin:master Jul 22, 2026
13 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.

3 participants