From 022503e2548e828b42967947348fd4aea24a32c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=BCndler?= Date: Mon, 18 Dec 2023 14:41:22 +0100 Subject: [PATCH] Fix to_pallas_bigint --- crates/uplc/src/machine/value.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/uplc/src/machine/value.rs b/crates/uplc/src/machine/value.rs index 6e54f6fe..474b39d3 100644 --- a/crates/uplc/src/machine/value.rs +++ b/crates/uplc/src/machine/value.rs @@ -410,6 +410,7 @@ pub fn to_pallas_bigint(n: &BigInt) -> pallas::BigInt { let (_, bytes) = n.to_bytes_be(); pallas::BigInt::BigUInt(bytes.into()) } else { + let n: BigInt = n + 1; let (_, bytes) = n.to_bytes_be(); pallas::BigInt::BigNInt(bytes.into()) }