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;