From c14d6f615a090cd6f5e01714c002ca9b52132f04 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 6 May 2024 10:15:59 +0200 Subject: [PATCH 1/2] update deps --- Cargo.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d5c3cfa8..bbf65241 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ members = [ ] [workspace.package] -version = "0.15.0" +version = "0.16.0" edition = "2021" [workspace.dependencies] @@ -76,11 +76,11 @@ tokio = "1.0" # IC dependencies candid = "0.10" dfinity-stable-structures = { package = "ic-stable-structures", version = "0.6" } -ic-agent = { version = "0.33" } -ic-cdk = "0.12" -ic-cdk-macros = "0.8" -ic-cdk-timers = "0.6" -ic-ledger-types = "0.9" +ic-agent = { version = "0.34" } +ic-cdk = "0.13" +ic-cdk-macros = "0.13" +ic-cdk-timers = "0.7" +ic-ledger-types = "0.10" ic-test-state-machine-client = "3" icrc-ledger-types = "0.1.0" -pocket-ic = "2.2" +pocket-ic = "3.1" From 0a4dbff4c2a887a6b5eb4c2d711eab09ba2553cb Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 6 May 2024 10:23:44 +0200 Subject: [PATCH 2/2] Fix compation --- ic-canister/ic-canister-macros/src/api.rs | 4 ++-- ic-exports/src/pocket_ic.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ic-canister/ic-canister-macros/src/api.rs b/ic-canister/ic-canister-macros/src/api.rs index 80e942dd..09ba7e12 100644 --- a/ic-canister/ic-canister-macros/src/api.rs +++ b/ic-canister/ic-canister-macros/src/api.rs @@ -192,7 +192,7 @@ pub(crate) fn api_method( } else { let args_destr_tuple = if with_args { quote! { - let #args_destr_tuple: #arg_type = ::ic_exports::ic_cdk::api::call::arg_data(); + let #args_destr_tuple: #arg_type = ::ic_exports::ic_cdk::api::call::arg_data(Default::default()); } } else { quote! {} @@ -405,7 +405,7 @@ pub(crate) fn generate_exports(input: TokenStream) -> TokenStream { let (args_destr_tuple, args_destr) = if arg_count > 1 { let args: Vec = (1..arg_count).map(|x| Ident::new(&format!("__arg_{x}"), Span::call_site())).collect(); ( - quote! { let ( #(#args),* , ) = ::ic_exports::ic_cdk::api::call::arg_data(); }, + quote! { let ( #(#args),* , ) = ::ic_exports::ic_cdk::api::call::arg_data(Default::default()); }, quote! { #(#args),* } ) } else { diff --git a/ic-exports/src/pocket_ic.rs b/ic-exports/src/pocket_ic.rs index e01f0cae..13c00fa6 100644 --- a/ic-exports/src/pocket_ic.rs +++ b/ic-exports/src/pocket_ic.rs @@ -12,7 +12,7 @@ pub use pocket_ic::*; #[cfg(feature = "pocket-ic-tests-async")] pub mod nio; -const POCKET_IC_SERVER_VERSION: &str = "3.0.1"; +const POCKET_IC_SERVER_VERSION: &str = "4.0.0"; /// Returns the pocket-ic client. /// If pocket-ic server binary is not present, it downloads it and sets