v0.2.6-pre.008-fix.001

This commit is contained in:
2026-08-21 11:50:18 +02:00
parent 1a9edd14e1
commit 4db4087b8a
8 changed files with 34 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/src/wallet_import.rs
// version: 1
// version: 2
//! Native-picker transfer import staging with bounded secret material kept only in Rust.
@@ -164,7 +164,7 @@ pub(crate) async fn stage_wallet_import_source(source: std::path::PathBuf, forma
};
let mut reader = file.take(read_limit);
let mut bytes = zeroize::Zeroizing::new(std::vec::Vec::with_capacity(maximum_source_bytes.saturating_add(1)));
let read_result = reader.read_to_end(&mut *bytes).await;
let read_result = reader.read_to_end(&mut bytes).await;
if let std::result::Result::Err(error) = read_result {
return std::result::Result::Err(
ksp_core_lib::Error::new(crate::ERROR_CODE_WALLET_IMPORT_SOURCE_INVALID, "Cannot read the selected Wallet transfer source").with_source(error),