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

refactor: use TxStatus to map revert errors #1142

Merged
merged 6 commits into from
Oct 4, 2023

Conversation

hal3e
Copy link
Contributor

@hal3e hal3e commented Sep 27, 2023

While working on an other issue, I have seen that we have some duplicated code for revert error mapping. I have refactored the code a bit so that we can remove the map_revert_error function and use the logic inside TxStatus

Checklist

  • I have added necessary labels.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@hal3e hal3e added the tech-debt Improves code quality or safety label Sep 27, 2023
@hal3e hal3e self-assigned this Sep 27, 2023
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍

Copy link
Contributor

@iqdecay iqdecay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice find

@hal3e hal3e merged commit 17247fc into master Oct 4, 2023
37 checks passed
@hal3e hal3e deleted the refactor/remove-map-error-in-call-handlers branch October 4, 2023 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Improves code quality or safety
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants