From a8b541f705caffc89ca77f0ac97da5c37d18df08 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Sat, 8 Jun 2024 14:04:43 +0200 Subject: [PATCH] Update wallet.rs --- swap/src/monero/wallet.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swap/src/monero/wallet.rs b/swap/src/monero/wallet.rs index b0d978aa..495c2351 100644 --- a/swap/src/monero/wallet.rs +++ b/swap/src/monero/wallet.rs @@ -130,9 +130,9 @@ impl Wallet { // Close the default wallet before generating the other wallet to ensure that // it saves its state correctly - let _ = wallet.close_wallet().await?; + let _ = self.inner.lock().await.close_wallet().await?; - let _ = wallet + let _ = self.inner.lock().await .generate_from_keys( file_name, temp_wallet_address.to_string(), @@ -167,7 +167,7 @@ impl Wallet { } } - let _ = wallet.open_wallet(self.name.clone()).await?; + let _ = self.inner.lock().await.open_wallet(self.name.clone()).await?; Ok(()) }