Skip to content

chore: remove deprecated ic-cdk imports in ic-icp-test-ledger#10322

Open
gregorydemay wants to merge 1 commit into
masterfrom
gdemay/DEFI-2304-icp-test-ledger
Open

chore: remove deprecated ic-cdk imports in ic-icp-test-ledger#10322
gregorydemay wants to merge 1 commit into
masterfrom
gdemay/DEFI-2304-icp-test-ledger

Conversation

@gregorydemay
Copy link
Copy Markdown
Contributor

@gregorydemay gregorydemay commented May 27, 2026

Summary

Extends DEFI-2304 — removing the file-level #![allow(deprecated)] attribute. For ic-icp-test-ledger the attribute was added later by #8490, but it has the same root cause as the rest of the DEFI-2304 surface: the canister was templated from another ledger canister that still used the deprecated ic_cdk::api::call::{arg_data_raw, reply_raw} imports.

  • ic_cdk::api::call::{arg_data_raw, reply_raw}ic_cdk::api::{msg_arg_data, msg_reply} (imported with as aliases so call sites stay untouched).

No behavior change.

Migrate this test ledger canister off the deprecated `ic_cdk::api::call::{arg_data_raw,
reply_raw}` to `ic_cdk::api::{msg_arg_data, msg_reply}` and drop the file-level
`#![allow(deprecated)]`. The `#![allow(deprecated)]` was introduced later in #8490
than the rest of the DEFI-2304 surface, but has the same root cause (the canister
was templated from another ledger canister that copied the deprecated imports).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the file-level #![allow(deprecated)] from the ic-icp-test-ledger canister by replacing the deprecated ic_cdk::api::call::{arg_data_raw, reply_raw} imports with ic_cdk::api::{msg_arg_data, msg_reply}, aliased to the old names so call sites remain unchanged.

Changes:

  • Drop #![allow(deprecated)] from main.rs.
  • Switch to non-deprecated msg_arg_data/msg_reply, aliased as arg_data_raw/reply_raw.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gregorydemay gregorydemay marked this pull request as ready for review May 29, 2026 07:41
@gregorydemay gregorydemay requested a review from a team as a code owner May 29, 2026 07:41
@github-actions github-actions Bot added the @defi label May 29, 2026
@gregorydemay gregorydemay changed the title chore: DEFI-2304 remove deprecated ic-cdk imports in ic-icp-test-ledger chore: remove deprecated ic-cdk imports in ic-icp-test-ledger May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants