-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction succeeds with a revert error #2898
Labels
bug
Issue is a bug
Comments
4 tasks
Thanks for getting to the bottom of this. Seriously. |
Relates to: |
petertonysmith94
changed the title
Transaction succeed with revert error
Transaction succeeds with a revert error
Aug 8, 2024
We're currently exploring a solution at the network level. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
A number of reports (1, 2) of a transaction succeeding, but the SDK throwing a revert error:
FuelError: The transaction reverted with an unknown reason
After investigations locally, I was unable to replicate this issue. However, using testnet, I was able to replicate this issue in around 1/10 transactions.
The issue arises due to a race condition, this occurs when:
statusChange
subscription can return a status ofSuccessStatus
getTransactionWithReceipts
query can return with a status ofSubmittedStatus
This leads to the transaction with
SubmittedStatus
being used as the transaction with no receipts and the following error and stack trace:The text was updated successfully, but these errors were encountered: