Fix to_pallas_bigint

This commit is contained in:
Niels Mündler 2023-12-18 14:41:22 +01:00 committed by Lucas
parent 1b1636ab0e
commit 022503e254
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ pub fn to_pallas_bigint(n: &BigInt) -> pallas::BigInt {
let (_, bytes) = n.to_bytes_be(); let (_, bytes) = n.to_bytes_be();
pallas::BigInt::BigUInt(bytes.into()) pallas::BigInt::BigUInt(bytes.into())
} else { } else {
let n: BigInt = n + 1;
let (_, bytes) = n.to_bytes_be(); let (_, bytes) = n.to_bytes_be();
pallas::BigInt::BigNInt(bytes.into()) pallas::BigInt::BigNInt(bytes.into())
} }