-
Notifications
You must be signed in to change notification settings - Fork 135
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
Remove traps from authenticated_anchor_operation #2222
Conversation
This removes the traps from the authenticated_anchor_operation helper, which allows to add proper errors to `identity_metadata_replace`.
Can you briefly explain why the API breakage is fine? |
The API breakage is fine because it is in the API v2 only, which is labeled as experimental. Unfortunately, there is no clean way to mark parts of the API as experimental that would be natively understood by the candid check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, modulo two questions.
Thanks!
@przydatek: I added the context to the errors. Could you please take another look? I will then also do another PR to also adapt the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This removes the traps from the authenticated_anchor_operation helper, which allows to add proper errors to
identity_metadata_replace
.I will do a follow-up PR to move the authentication helpers and error mappers out of the
main.rs
file to keep it focused on the endpoints.