Skip to content

Commit

Permalink
Remove clone
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 9, 2023
1 parent 49a2656 commit ba0a534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/types/block/address/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Address {
// TODO maybe shouldn't be a semantic error but this function currently returns a TransactionFailureReason.
(Self::Anchor(_), _) => return Err(TransactionFailureReason::SemanticValidationFailed),
(Self::ImplicitAccountCreation(address), _) => {
return Self::from(address.ed25519_address().clone()).unlock(unlock, context);
return Self::from(*address.ed25519_address()).unlock(unlock, context);
}
_ => return Err(TransactionFailureReason::InvalidInputUnlock),
}
Expand Down

0 comments on commit ba0a534

Please sign in to comment.