From 2b14efaf858d45c695e94a6ee8d1e797dd854e41 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Mon, 4 Dec 2023 10:42:08 +0100 Subject: [PATCH 1/2] Fix CongestionResponse (#1731) --- sdk/src/types/api/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/types/api/core.rs b/sdk/src/types/api/core.rs index 907f0891a3..48e89e3451 100644 --- a/sdk/src/types/api/core.rs +++ b/sdk/src/types/api/core.rs @@ -307,7 +307,7 @@ impl IssuanceBlockHeaderResponse { #[serde(rename_all = "camelCase")] pub struct CongestionResponse { /// The slot index for which the congestion estimate is provided. - pub slot_index: SlotIndex, + pub slot: SlotIndex, /// Indicates if a node is ready to issue a block in a current congestion or should wait. pub ready: bool, /// The cost in mana for issuing a block in a current congestion estimated based on RMC and slot index. From e794536f97985c8970f2167a9157a9fe68aa2c27 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:33:53 +0100 Subject: [PATCH 2/2] Use stored wallet data in builder (#1734) * Use stored wallet data in builder * Fix without storage feature --- sdk/src/wallet/core/builder.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/src/wallet/core/builder.rs b/sdk/src/wallet/core/builder.rs index b84b936b8d..63e87715ee 100644 --- a/sdk/src/wallet/core/builder.rs +++ b/sdk/src/wallet/core/builder.rs @@ -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),