Fix build:

I forgot to run the tests, and one of them failed to build (cause: a
bls12_381 version upgrade that I triggered).

Fixed now.
This commit is contained in:
Alex Ozdemir
2021-10-18 16:44:13 -07:00
parent efe0d62263
commit df8dd66ce0

View File

@@ -134,13 +134,13 @@ mod test {
#[quickcheck]
fn int_to_ff_random(BlsScalar(i): BlsScalar) -> bool {
let by_fn = int_to_ff::<Scalar>(&i);
let by_str = Scalar::from_str(&format!("{}", i)).unwrap();
let by_str = Scalar::from_str_vartime(&format!("{}", i)).unwrap();
by_fn == by_str
}
fn convert(i: Integer) {
let by_fn = int_to_ff::<Scalar>(&i);
let by_str = Scalar::from_str(&format!("{}", i)).unwrap();
let by_str = Scalar::from_str_vartime(&format!("{}", i)).unwrap();
assert_eq!(by_fn, by_str);
}