Fix to_pallas_bigint
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user