feat: use BigInt in constant integer
This commit is contained in:
parent
ec58279424
commit
cfbe5fd3cc
|
@ -4,6 +4,7 @@ use std::{
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use num_bigint::BigInt;
|
||||||
use serde::{
|
use serde::{
|
||||||
self,
|
self,
|
||||||
de::{self, Deserialize, Deserializer, MapAccess, Visitor},
|
de::{self, Deserialize, Deserializer, MapAccess, Visitor},
|
||||||
|
@ -228,7 +229,7 @@ where
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum Constant {
|
pub enum Constant {
|
||||||
// tag: 0
|
// tag: 0
|
||||||
Integer(i128),
|
Integer(BigInt),
|
||||||
// tag: 1
|
// tag: 1
|
||||||
ByteString(Vec<u8>),
|
ByteString(Vec<u8>),
|
||||||
// tag: 2
|
// tag: 2
|
||||||
|
|
Loading…
Reference in New Issue