fix: Mark multiple transactions as failed if a batch smart transaction fails#551
Merged
fix: Mark multiple transactions as failed if a batch smart transaction fails#551
Conversation
…n fails Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
jpuri
approved these changes
Dec 11, 2025
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.
Description
fix: Mark multiple transactions as failed if a batch smart transaction fails.
Steps to reproduce
Quickest way is to upgrade or downgrade an EIP-7702 account and use any gas fee token, with STX enabled (this error is being fixed separately by @matthewwalsh0).
Before this fix only one transaction from a batch would be marked as failed, with this all transactions in a batch are marked as failed. It only started happening after we started returning a txHash asap. Before that all transactions were being marked as failed in the TransactionController.
Note
Marks all related regular transactions as failed when a batch smart transaction fails by matching txHashes, updates controller usage, and adds tests; also records txHashes on submit (keeping legacy txHash).
shouldMarkRegularTransactionAsFailed→shouldMarkRegularTransactionsAsFailedandmarkRegularTransactionAsFailed→markRegularTransactionsAsFailed.TransactionMetaas failed by matchingtx.hashinsmartTransaction.txHashesoridequalstransactionId; skip already-failed.txHashes(and keeptxHashfor backward compatibility).txHashesmatch.Written by Cursor Bugbot for commit 2b8334b. This will update automatically on new commits. Configure here.