Skip to content

Commit

Permalink
Update sdk/src/client/secret/ledger_nano.rs
Browse files Browse the repository at this point in the history
Co-authored-by: DaughterOfMars <[email protected]>
  • Loading branch information
Thoralf-M and DaughterOfMars authored Dec 4, 2023
1 parent d251af1 commit 4533324
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sdk/src/client/secret/ledger_nano.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,7 @@ fn merge_unlocks(
.transaction
.context_inputs()
.iter()
.find_map(|c| {
if c.is_commitment() {
Some(c.as_commitment().slot_index())
} else {
None
}
})
.find_map(|c| c.as_commitment_opt().map(|c| c.slot_index()))
.unwrap_or_else(|| prepared_transaction_data.transaction.creation_slot());
let transaction_signing_hash = prepared_transaction_data.transaction.signing_hash();

Expand Down

0 comments on commit 4533324

Please sign in to comment.