Fix to_pallas_bigint
This commit is contained in:
parent
1b1636ab0e
commit
022503e254
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue