From b17314742b3fd46a7ebce701336efab58aa89e85 Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Tue, 19 Nov 2024 19:21:09 -0300 Subject: [PATCH] fix feature compile errors --- zingolib/src/wallet/disk/testing/tests.rs | 1 + zingolib/src/wallet/keys/unified.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/zingolib/src/wallet/disk/testing/tests.rs b/zingolib/src/wallet/disk/testing/tests.rs index c93e24863..216866a65 100644 --- a/zingolib/src/wallet/disk/testing/tests.rs +++ b/zingolib/src/wallet/disk/testing/tests.rs @@ -297,6 +297,7 @@ async fn reload_wallet_from_buffer() { assert_eq!(balance.orchard_balance, Some(10342837)); } +#[cfg(feature = "ledger-support")] #[tokio::test] async fn test_ledger_initialization() { use crate::wallet::WalletCapability; diff --git a/zingolib/src/wallet/keys/unified.rs b/zingolib/src/wallet/keys/unified.rs index e59d42a94..147a079f4 100644 --- a/zingolib/src/wallet/keys/unified.rs +++ b/zingolib/src/wallet/keys/unified.rs @@ -31,9 +31,10 @@ use crate::{ wallet::data::new_rejection_address, }; +#[cfg(feature = "ledger-support")] use super::ledger::LedgerKeys; -use super::legacy::{legacy_sks_to_usk, Capability}; +use super::legacy::{legacy_sks_to_usk, Capability}; use crate::wallet::keys::capability::{InternalCapability, InMemoryWallet}; pub(crate) const KEY_TYPE_EMPTY: u8 = 0;