Skip to content

Commit

Permalink
Remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 9, 2023
1 parent f048f69 commit 7a3b28c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sdk/src/types/block/address/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ impl Address {
}
}
(Self::Multi(address), Unlock::Multi(unlock)) => {
let threshold = address.threshold();

if address.addresses().len() != unlock.unlocks().len() {
return Err(TransactionFailureReason::InvalidInputUnlock);
}
Expand All @@ -182,7 +180,7 @@ impl Address {
}
}

if cumulative_unlocked_eight < threshold {
if cumulative_unlocked_eight < address.threshold() {
return Err(TransactionFailureReason::InvalidInputUnlock);
}
}
Expand Down

0 comments on commit 7a3b28c

Please sign in to comment.