Skip to content

Commit

Permalink
kani: fix Amount overflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Feb 5, 2024
1 parent 92a0969 commit 343510d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion units/src/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ mod verification {
if n1 <= i64::MAX as u64 {
Ok(SignedAmount::from_sat(n1.try_into().unwrap()))
} else {
Err(ParseAmountError::OutOfRange(OutOfRangeError::too_big(false)))
Err(ParseAmountError::OutOfRange(OutOfRangeError::too_big(true)))
},
);
}
Expand Down

0 comments on commit 343510d

Please sign in to comment.