Repository navigation
fix(ts-sdk): pin the discovered payer in kit fee estimation and submission - #747
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge. SummaryThe Kit executor now sends the discovered payer’s address as
Reviews (3) · Last reviewed commit: "build(deps): bump fast-uri to 3.1.9 in t..." · Reviewed by Greptile |
amilz
previously approved these changes
Oct 27, 2026
dev-jodee
force-pushed
the
fix/security-cleanup
branch
from
October 27, 2026 14:52
ebb562f to
dcdb3d8
Compare
…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
force-pushed
the
fix/security-cleanup
branch
from
October 27, 2026 16:33
dcdb3d8 to
be96021
Compare
amilz
approved these changes
Oct 27, 2026
Collaborator
Author
|
thanks @AkshatGada for raising the issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Linked issue: trivial
Finding provided by @AkshatGada
What and why
createKoraTransactionPlanExecutorbuilds the message with the payer fromgetPayerSigner, butestimateTransactionFeeandsignAndSendTransactiondid not passsigner_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 passsigner_key: payerSigner.address.examples/x402/demo/api(4 Dependabot alerts).Testing
unit,kit-client,plugin): 78 passed. The newsigner_keyassertion fails without the executor change.tsc --noEmit, prettier check: passAI disclosure