Skip to content

Commit

Permalink
Use stored wallet data in builder (#1734)
Browse files Browse the repository at this point in the history
* Use stored wallet data in builder

* Fix without storage feature
  • Loading branch information
Thoralf-M authored Dec 4, 2023
1 parent 2b14efa commit e794536
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,6 +259,9 @@ 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),
Expand Down

0 comments on commit e794536

Please sign in to comment.