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

ICRC-21: Refactor consent message error types #109

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

frederikrothenberger
Copy link
Contributor

@frederikrothenberger frederikrothenberger commented Dec 12, 2023

This refactors the ICRC-21 error handling to be more ergonomic and specific:

  • The opt is dropped from the API in favor of the ICRC-1/2 generic_error
  • The non-generic errors are relieved from having to provide an error_code as the variant already indicates the type

This refactors the ICRC-21 error types to be more ergonomic:
* The `opt` is dropped in favor of the `ICRC-1/2` `generic_error`
* The non-generic errors are relieved from having to provide an error_code
  as the variant already indicates the type
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@frederikrothenberger frederikrothenberger merged commit c6a184e into main Dec 13, 2023
2 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/refactor-error-types branch December 13, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants