From 9cec0d68f9ee2022b0097ba298a5d65b6b5495b2 Mon Sep 17 00:00:00 2001 From: Thomas Dinsdale-Young Date: Fri, 17 Oct 2025 17:16:07 +0200 Subject: [PATCH 1/2] Update the Rust SDK. --- Cargo.lock | 4 ++-- deps/concordium-rust-sdk | 2 +- wallet-proxy-indexer/src/main.rs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0bd49b7..2346a4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -828,7 +828,7 @@ dependencies = [ [[package]] name = "concordium_base" -version = "8.0.0" +version = "8.0.0-alpha.3" dependencies = [ "aes", "anyhow", @@ -876,7 +876,7 @@ dependencies = [ [[package]] name = "concordium_base_derive" -version = "1.1.0" +version = "1.1.0-alpha.3" dependencies = [ "convert_case 0.8.0", "darling", diff --git a/deps/concordium-rust-sdk b/deps/concordium-rust-sdk index f0b0661..ad3e52e 160000 --- a/deps/concordium-rust-sdk +++ b/deps/concordium-rust-sdk @@ -1 +1 @@ -Subproject commit f0b0661eb9a2eba85242c4d371f298e87216c565 +Subproject commit ad3e52e6aac1fe0686bd3c840ef62d560247bb83 diff --git a/wallet-proxy-indexer/src/main.rs b/wallet-proxy-indexer/src/main.rs index 73e6fba..fcebd31 100644 --- a/wallet-proxy-indexer/src/main.rs +++ b/wallet-proxy-indexer/src/main.rs @@ -329,13 +329,13 @@ impl PreparedStatements { } // insert contracts - let affected_contracts = ts.summary.affected_contracts().known_or_else(|| { + let affected_contracts = ts.summary.affected_contracts().known_or_else(|_| { log::error!("Could not determine affected contracts for a BlockItemSummary of unknown type. {:?}", ts.summary); IndexingError::UnknownData("Could not determine affected contracts for a BlockItemSummary of unknown type.".to_string()) })?; // if Unknown, throw an error for contract_address in affected_contracts { - let affected = contract_address.known_or_else(|| { + let affected = contract_address.known_or_else(|_| { log::error!("Could not determine affected contracts of an unknown type of AccountTransactionEffects. {:?}", ts.summary); IndexingError::UnknownData("Could not determine affected contracts of an unknown type of AccountTransactionEffects.".to_string()) })?; // encountered unknown contract_address, throw an error, this will stop the insert into db process and alert the user to update the rust SDK @@ -604,7 +604,7 @@ fn get_cis2_events(bi: &BlockItemSummary) -> Result for CanonicalAddressCache { let mut with_addresses = Vec::with_capacity(transaction_summaries.len()); let mut key_update_addresses = HashSet::new(); for summary in transaction_summaries { - let affected_addresses = summary.affected_addresses().known_or_else(|| { + let affected_addresses = summary.affected_addresses().known_or_else(|_| { Status::unknown("Could not determine affected addresses for BlockItem") })?; // if unknown, throw Err Status::unknown From c5161e3cdabcf0103e1f83f12dd8997ef52c952c Mon Sep 17 00:00:00 2001 From: Thomas Dinsdale-Young Date: Thu, 30 Oct 2025 13:02:37 +0100 Subject: [PATCH 2/2] Update Rust SDK --- Cargo.lock | 4 ++-- deps/concordium-rust-sdk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2346a4c..77ad528 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -762,7 +762,7 @@ dependencies = [ [[package]] name = "concordium-rust-sdk" -version = "7.0.0-alpha.4" +version = "8.0.0" dependencies = [ "aes-gcm", "anyhow", @@ -828,7 +828,7 @@ dependencies = [ [[package]] name = "concordium_base" -version = "8.0.0-alpha.3" +version = "9.0.0" dependencies = [ "aes", "anyhow", diff --git a/deps/concordium-rust-sdk b/deps/concordium-rust-sdk index ad3e52e..a43baee 160000 --- a/deps/concordium-rust-sdk +++ b/deps/concordium-rust-sdk @@ -1 +1 @@ -Subproject commit ad3e52e6aac1fe0686bd3c840ef62d560247bb83 +Subproject commit a43baeeae7a434ca39b03bd7cf56cd7f9fe4ff7d