Skip to content

Commit

Permalink
Fix without storage feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Dec 4, 2023
1 parent 702d13e commit ee8cdfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/src/wallet/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ where
#[cfg(feature = "storage")]
storage_manager: tokio::sync::RwLock::new(storage_manager),
};
#[cfg(feature = "storage")]
let wallet_data = wallet_data.unwrap_or_else(|| WalletData::new(self.bip_path, address, self.alias.clone()));
#[cfg(not(feature = "storage"))]
let wallet_data = WalletData::new(self.bip_path, address, self.alias.clone());
let wallet = Wallet {
inner: Arc::new(wallet_inner),
data: Arc::new(RwLock::new(wallet_data)),
Expand Down

0 comments on commit ee8cdfe

Please sign in to comment.