Skip to content

Commit

Permalink
Remove cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Jan 16, 2024
1 parent 25370d7 commit 8479a5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/src/wallet/operations/transaction/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ where
where
crate::wallet::Error: From<S::Error>,
{
let implicit_account_data = self
.data()
.await
let wallet_data = self.data().await;
let implicit_account_data = wallet_data
.unspent_outputs
.get(output_id)
.cloned()
.ok_or(Error::ImplicitAccountNotFound)?;
let implicit_account = if implicit_account_data.output.is_implicit_account() {
implicit_account_data.output.as_basic()
Expand Down Expand Up @@ -104,6 +102,8 @@ where
)?])
.finish_output()?;

drop(wallet_data);

// TODO https://github.com/iotaledger/iota-sdk/issues/1740
let issuance = self.client().get_issuance().await?;

Expand Down

0 comments on commit 8479a5c

Please sign in to comment.