Skip to content

Commit c1e9a9a

Browse files
committed
Switch to regular comparison
1 parent 05adb94 commit c1e9a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/tx_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl TransactionBuilder {
259259
// Phase 3: add extra inputs needed for fees
260260
// We do this at the end because this new inputs won't be associated with
261261
// a specific output, so the improvement algorithm we do above does not apply here.
262-
if input_total.partial_cmp(&output_total).unwrap().eq(&Ordering::Less) {
262+
if input_total < output_total {
263263
let mut added = Value::new(&Coin::zero());
264264
let mut remaining_amount = output_total.checked_sub(&input_total)?;
265265
while added < remaining_amount {

0 commit comments

Comments
 (0)