Skip to content

fix(ts-sdk): pin the discovered payer in kit fee estimation and submission - #747

Merged
dev-jodee merged 2 commits into
mainfrom
fix/security-cleanup
Oct 27, 2026
Merged

dev-jodee merged 2 commits into
mainfrom
fix/security-cleanup

Conversation

@dev-jodee

@dev-jodee dev-jodee commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Linked issue

Linked issue: trivial

Finding provided by @AkshatGada

What and why

  • Kit executor payer pinning (ts-sdk): createKoraTransactionPlanExecutor builds the message with the payer from getPayerSigner, but estimateTransactionFee and signAndSendTransaction did not pass signer_key. With several signers, the server could quote or sign with a different signer, which overquotes the payment or rejects the transaction. Both calls now pass signer_key: payerSigner.address.
  • x402 demo: bumps fast-uri 3.1.8 to 3.1.9 in examples/x402/demo/api (4 Dependabot alerts).

Testing

  • ts-sdk unit tests (unit, kit-client, plugin): 78 passed. The new signer_key assertion fails without the executor change.
  • tsc --noEmit, prettier check: pass

AI disclosure

  • No AI tooling was used beyond editor autocomplete.
  • AI tooling was used. Tool and extent: Claude Code made the changes and wrote this description, reviewed by me.

@dev-jodee
dev-jodee requested a review from amilz as a code owner October 27, 2026 12:50
@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The Kit executor now sends the discovered payer’s address as signer_key when estimating fees and submitting transactions.

  • Kit transactions use the same payer for fee estimates and submission.
  • The x402 demo API lockfile points to newer dependency versions.

Reviews (3) · Last reviewed commit: "build(deps): bump fast-uri to 3.1.9 in t..." · Reviewed by Greptile

amilz
amilz previously approved these changes Oct 27, 2026
@dev-jodee dev-jodee changed the title fix: pin kit payer signer, move CodeQL to an advanced setup that skips tests fix(ts-sdk): pin the kit payer signer, move validator tests to their own file Oct 27, 2026
@dev-jodee
dev-jodee force-pushed the fix/security-cleanup branch from ebb562f to dcdb3d8 Compare October 27, 2026 14:52
@dev-jodee
dev-jodee requested a review from amilz October 27, 2026 15:04
…ssion

The kit executor builds the message with the payer from getPayerSigner but
did not pass signer_key, so with several signers the server could quote
or sign with a different one. That overquotes the payment or rejects the
transaction.
@dev-jodee
dev-jodee force-pushed the fix/security-cleanup branch from dcdb3d8 to be96021 Compare October 27, 2026 16:33
@dev-jodee dev-jodee changed the title fix(ts-sdk): pin the kit payer signer, move validator tests to their own file fix(ts-sdk): pin the discovered payer in kit fee estimation and submission Oct 27, 2026
@dev-jodee
dev-jodee merged commit 70798e8 into main Oct 27, 2026
30 of 34 checks passed
@dev-jodee
dev-jodee deleted the fix/security-cleanup branch October 27, 2026 16:43
@dev-jodee

Copy link
Copy Markdown
Collaborator Author

thanks @AkshatGada for raising the issue

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.

2 participants