Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

feat: return explicit execute errors #20

Merged
merged 2 commits into from
Feb 9, 2024
Merged

feat: return explicit execute errors #20

merged 2 commits into from
Feb 9, 2024

Conversation

sebastiendan
Copy link
Member

Description

This PR improves error handling in the execute processor. New errors are typed following an enum listing all errors potentially being thrown during the execute processor execution, and transaction revert error data is decoded if revert happened in ToposMessaging code (otherwise throws the raw data, to be decoded by the client).

Fixes TOO-423

PR Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added or updated tests that comprehensively prove my change is effective or that my feature works

@sebastiendan sebastiendan merged commit e6fed9d into main Feb 9, 2024
4 checks passed
@sebastiendan sebastiendan deleted the seb/too-423 branch February 9, 2024 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant