Skip to content

Commit adceafa

Browse files
rajarshimaitraafilini
authored andcommitted
Fix float substraction error
1 parent 2b0c4f0 commit adceafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/coin_selection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ mod test {
822822

823823
assert_eq!(result.selected.len(), 3);
824824
assert_eq!(result.selected_amount(), 300_010);
825-
assert!((result.fee_amount - 254.0).abs() < f32::EPSILON);
825+
assert!((result.fee_amount as f32 - 254.0).abs() < f32::EPSILON);
826826
}
827827

828828
#[test]

0 commit comments

Comments
 (0)