From 775ee8edf7ca19158f68f7eea858a95cfc60630b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Demay?= Date: Wed, 27 May 2026 07:36:21 +0000 Subject: [PATCH] chore: DEFI-2304 remove deprecated ic-cdk imports in ic-icp-test-ledger 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) --- rs/ledger_suite/icp/test_utils/icp_test_ledger/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rs/ledger_suite/icp/test_utils/icp_test_ledger/src/main.rs b/rs/ledger_suite/icp/test_utils/icp_test_ledger/src/main.rs index 03099ad7c645..7a692bc47b27 100644 --- a/rs/ledger_suite/icp/test_utils/icp_test_ledger/src/main.rs +++ b/rs/ledger_suite/icp/test_utils/icp_test_ledger/src/main.rs @@ -1,6 +1,5 @@ -#![allow(deprecated)] use candid::Nat; -use ic_cdk::api::call::{arg_data_raw, reply_raw}; +use ic_cdk::api::{msg_arg_data as arg_data_raw, msg_reply as reply_raw}; use ic_cdk::futures::internals::in_query_executor_context; use ic_cdk::{init, query, update}; use ic_icp_test_ledger::AddBlockResult;