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

chore: deprecate old call API #542

Merged
merged 6 commits into from
Dec 20, 2024
Merged

Conversation

lwshang
Copy link
Contributor

@lwshang lwshang commented Dec 20, 2024

Description

The old call API in ic_cdk::api::call.rs are deprecated.

ic-cdk-timers, ic-ledger-types and some e2e tests are migrated to the new Call::new(...) API.

During the migration, a bug in CallPerformErrorCode handling was found. And both RejectCode and CallPerformErrorCode are improved to include a NoError variant and implemented Into/From/PartialEq traits with u32.

How Has This Been Tested?

The e2e tests. And there should be no compiler error/warning across the whole project.

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 chore: deprecate old call variants chore: deprecate old call API Dec 20, 2024
@lwshang lwshang marked this pull request as ready for review December 20, 2024 15:39
@lwshang lwshang requested a review from a team as a code owner December 20, 2024 15:39
@lwshang lwshang merged commit c2ba198 into next Dec 20, 2024
11 checks passed
@lwshang lwshang deleted the lwshang/deprecate_old_call_variants branch December 20, 2024 16: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.

2 participants