Skip to content
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

Improve Dry-Run Gas Estimation Error Handling #2314

Closed
Torres-ssf opened this issue May 16, 2024 · 0 comments · Fixed by #2291
Closed

Improve Dry-Run Gas Estimation Error Handling #2314

Torres-ssf opened this issue May 16, 2024 · 0 comments · Fixed by #2291
Assignees
Labels

Comments

@Torres-ssf
Copy link
Contributor

Currently, the SDK does not analyze receipts from the dry-run call when estimating the gas used in a transaction (TX). This happens due to the absence of the TX status in the dry-run response, which prevents us from decoding the Panic revert reason, leading to improper error handling.

Starting with fuel-core version 0.24, the status field has been added to the dry-run response. With this enhancement, we can properly analyze the status from the estimation dry-run and prevent the submission of transactions that fail at this stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant