Fix kani test

Recently (in #2379) we patched the `ParseAmountError` but we don't check
kani code on every pull request so we broke it.

Fix kani test to use the new `OutOfRangeError`.

Close: #2424
This commit is contained in:
Tobin C. Harding 2024-02-01 15:12:41 +11:00
parent 8efaf4a300
commit 96d3bbd065
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 4 additions and 1 deletions

View File

@ -1755,7 +1755,10 @@ mod verification {
if n1 >= 0 { if n1 >= 0 {
Ok(Amount::from_sat(n1.try_into().unwrap())) Ok(Amount::from_sat(n1.try_into().unwrap()))
} else { } else {
Err(ParseAmountError::Negative) Err(OutOfRangeError {
is_signed: true,
is_greater_than_max: false
})
}, },
); );
} }