Update wallet.rs

This commit is contained in:
binarybaron 2024-06-09 12:12:00 +02:00
parent a427be5f9f
commit bf4627314a

View File

@ -147,7 +147,13 @@ impl Wallet {
// Try to send all the funds from the generated wallet to the default wallet
match self.refresh(3).await {
Ok(_) => match self.inner.lock().await.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!(