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

feat!: switch RejectCode to ic-error-types and deprecate ic-response-codes #571

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

lwshang
Copy link
Contributor

@lwshang lwshang commented Mar 5, 2025

SDK-2009

Description

  • ic-response-codes is replaced by ic-error-types which is maintained in the ic repo.
  • CallRejected now records the raw reject code number
    • It provide reject_code() and raw_reject_code() methods. The former may fail with UnrecognizedRejectCode.

How Has This Been Tested?

existing e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@lwshang lwshang changed the title feat!: switch RejectCode to depend on ic-error-types and deprecate ic-response-codes feat!: switch RejectCode to ic-error-types and deprecate ic-response-codes Mar 5, 2025
@lwshang lwshang marked this pull request as ready for review March 5, 2025 21:57
@lwshang lwshang requested a review from a team as a code owner March 5, 2025 21:57
@lwshang lwshang merged commit be90d32 into next Mar 5, 2025
12 checks passed
@lwshang lwshang deleted the lwshang/SDK-2009_error_types_dep branch March 5, 2025 21:57
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.

1 participant