From cfbe5fd3ccd4b2818aa5d6375f19718c7a6bc841 Mon Sep 17 00:00:00 2001 From: rvcas Date: Thu, 9 Feb 2023 09:46:42 -0500 Subject: [PATCH] feat: use BigInt in constant integer --- crates/uplc/src/ast.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/uplc/src/ast.rs b/crates/uplc/src/ast.rs index f3b44189..118d8cbf 100644 --- a/crates/uplc/src/ast.rs +++ b/crates/uplc/src/ast.rs @@ -4,6 +4,7 @@ use std::{ rc::Rc, }; +use num_bigint::BigInt; use serde::{ self, de::{self, Deserialize, Deserializer, MapAccess, Visitor}, @@ -228,7 +229,7 @@ where #[derive(Debug, Clone, PartialEq)] pub enum Constant { // tag: 0 - Integer(i128), + Integer(BigInt), // tag: 1 ByteString(Vec), // tag: 2