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:
parent
8efaf4a300
commit
96d3bbd065
|
@ -1755,7 +1755,10 @@ mod verification {
|
|||
if n1 >= 0 {
|
||||
Ok(Amount::from_sat(n1.try_into().unwrap()))
|
||||
} else {
|
||||
Err(ParseAmountError::Negative)
|
||||
Err(OutOfRangeError {
|
||||
is_signed: true,
|
||||
is_greater_than_max: false
|
||||
})
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue