Add a function to get the first failed transaction plan result#1236
Merged
Conversation
🦋 Changeset detectedLatest commit: a2d4804 The changes in this PR will be included in the next version bump. This PR includes changesets to release 43 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
BundleMonFiles updated (7)
Unchanged files (129)
Total files change +624B +0.16% Final result: ✅ View report in BundleMon website ➡️ |
Contributor
|
Documentation Preview: https://kit-docs-a9r596v63-anza-tech.vercel.app |
lorisleiva
approved these changes
Jan 23, 2026
Member
lorisleiva
left a comment
There was a problem hiding this comment.
Thanks! Just a few nits and LGTM!
9a9910a to
40b7f73
Compare
lorisleiva
reviewed
Jan 24, 2026
40b7f73 to
d6c558f
Compare
lorisleiva
reviewed
Jan 26, 2026
d6c558f to
a2d4804
Compare
Contributor
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Solana Kit Docs' |
This was referenced Jan 26, 2026
Merged
Closed
Contributor
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
If you have a
TransactionPlanResultthat contains some failed transactions, it is non-trivial to get the first one that failed, which is often useful for error handling.Summary of Changes
Add a new function
getFirstFailedTransactionPlanResultthat finds the firstSingleTransactionPlanResultthat has a failed status. It throws a newSOLANA_ERROR__INSTRUCTION_PLANS__FAILED_TRANSACTION_PLAN_RESULT_NOT_FOUNDif there is no such failed transaction plan result