Skip to content

Commit

Permalink
Fix implicit_account break
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Mar 20, 2024
1 parent 53bfbb8 commit ce9ca65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/tests/wallet/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ pub(crate) async fn request_funds(wallet: &Wallet) -> Result<(), Box<dyn std::er
}))
.await?;
if let Some(account) = wallet.ledger().await.implicit_accounts().next() {
break account;
break account.clone();
}
attempts += 1;
if attempts == 30 {
panic!("Faucet no longer wants to hand over coins");
}
}
};

let mut tries = 0;
while let Err(ClientError::Node(iota_sdk::client::node_api::error::Error::NotFound(_))) = wallet
Expand Down

0 comments on commit ce9ca65

Please sign in to comment.