Handle Fp64 related issue (#32)

This commit is contained in:
Pratyush Mishra
2020-12-15 22:36:01 -08:00
committed by GitHub
parent 72b04dbacb
commit ae06af2448

View File

@@ -227,7 +227,7 @@ pub fn from_str_test<F: PrimeField>() {
let a = F::from_str(&ark_std::format!("{}", n))
.map_err(|_| ())
.unwrap();
let b = F::from_repr(n.into()).unwrap();
let b = F::from(n);
assert_eq!(a, b);
}