change input param order

This commit is contained in:
kilic 2021-03-23 19:57:07 +03:00
parent 5d8a41fd44
commit 89440daca1
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ where
let mut buf = <E::Fr as PrimeField>::Repr::default();
buf.read_le(&mut reader)?;
let hash =
let epoch =
E::Fr::from_repr(buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
buf.read_le(&mut reader)?;
let epoch =
let hash =
E::Fr::from_repr(buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
Ok(RLNSignal { epoch, hash })