From a427be5f9f8dd0ebb279a44bfbab5c27f5955361 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:11:02 +0200 Subject: [PATCH] test --- swap/src/monero/wallet.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/swap/src/monero/wallet.rs b/swap/src/monero/wallet.rs index bb01f13e..c009a93c 100644 --- a/swap/src/monero/wallet.rs +++ b/swap/src/monero/wallet.rs @@ -126,8 +126,6 @@ impl Wallet { let temp_wallet_address = Address::standard(self.network, public_spend_key, public_view_key); - let wallet = self.inner.lock().await; - // Close the default wallet before generating the other wallet to ensure that // it saves its state correctly let _ = self.inner.lock().await.close_wallet().await?; @@ -149,7 +147,7 @@ impl Wallet { // Try to send all the funds from the generated wallet to the default wallet match self.refresh(3).await { - Ok(_) => match wallet.sweep_all(self.main_address.to_string()).await { + Ok(_) => match self.inner.lock().await.sweep_all(self.main_address.to_string()).await { Ok(sweep_all) => { for tx in sweep_all.tx_hash_list { tracing::info!(