Skip to content

Commit

Permalink
Fix needs_blind_signing() for non Ed25519 addresses (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Nov 29, 2023
1 parent 24f1057 commit 38e4f97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Display of `WalletError::InsufficientFunds`;

### Fixed

- `needs_blind_signing()` for non Ed25519 addresses;

## 1.1.2 - 2023-10-26

### Added
Expand Down
8 changes: 3 additions & 5 deletions sdk/src/client/secret/ledger_nano.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,9 @@ impl SecretManagerConfig for LedgerSecretManager {
pub fn needs_blind_signing(prepared_transaction: &PreparedTransactionData, buffer_size: usize) -> bool {
let TransactionEssence::Regular(essence) = &prepared_transaction.essence;

if !essence
.outputs()
.iter()
.all(|output| matches!(output, Output::Basic(o) if o.simple_deposit_address().is_some()))
{
if !essence.outputs().iter().all(
|output| matches!(output, Output::Basic(o) if o.simple_deposit_address().is_some() && o.address().is_ed25519()),
) {
return true;
}

Expand Down

0 comments on commit 38e4f97

Please sign in to comment.