Skip to content

refactor(connect-common): drop unused account.path from composePsbt params - #32182

Open
mroz22 wants to merge 1 commit into
feat/connect-psbtfrom
mroz22/composepsbt-drop-account-path
Open

refactor(connect-common): drop unused account.path from composePsbt params#32182
mroz22 wants to merge 1 commit into
feat/connect-psbtfrom
mroz22/composepsbt-drop-account-path

Conversation

@mroz22

@mroz22 mroz22 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Standalone extraction from the review of #26056 — a single self-contained commit, so it can be taken (or not) independently of the rest of the review follow-ups.

Change: remove account.path from ComposePsbtParams entirely (and from the type-test literal).

Why: path was copied from composeTransaction's account shape, but composePsbt / parsePsbt never read it — every derivation path comes from the per-utxo and per-change-address entries. Dropping it makes the public type reflect exactly what the method consumes. composeTransaction keeps its path (which it genuinely uses), so the two account shapes correctly differ. Callers passing a full account variable are unaffected; only inline object literals that include path need it dropped.

Type-check clean for @trezor/connect-common and @trezor/connect. Based on feat/connect-psbt.

🤖 Generated with Claude Code

…arams

`ComposePsbtParams.account.path` was copied from composeTransaction's
account shape, but composePsbt/parsePsbt never read it — every derivation
path comes from the per-utxo and per-change-address entries. Rather than
leave a required-but-unused (or optional-but-unused) field on the public
API, drop it entirely so the type reflects exactly what the method
consumes. The type-test literal is updated accordingly. (composeTransaction
keeps its `path`, which it genuinely uses.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mroz22
mroz22 requested a review from martykan as a code owner September 7, 2026 12:07
@mroz22 mroz22 added the no-project This label is used to specify that PR doesn't need to be added to a project label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-project This label is used to specify that PR doesn't need to be added to a project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant