fix(primitives): Handle very BigInt in plutus data (#75)
This commit is contained in:
parent
3eb064502c
commit
f543e9828c
3 changed files with 5 additions and 6 deletions
|
|
@ -11,13 +11,9 @@ pub trait Fragment: Sized {
|
|||
fn write_cbor<W: Write>(&self, write: W) -> Result<(), minicbor::encode::Error<W::Error>>;
|
||||
}
|
||||
|
||||
pub trait DecodeOwned: for<'b> minicbor::Decode<'b> {}
|
||||
|
||||
impl<T> DecodeOwned for T where T: for<'b> minicbor::Decode<'b> {}
|
||||
|
||||
impl<T> Fragment for T
|
||||
where
|
||||
T: DecodeOwned + minicbor::Encode,
|
||||
T: for<'b> minicbor::Decode<'b> + minicbor::Encode,
|
||||
{
|
||||
fn read_cbor(buffer: &[u8]) -> Result<Self, minicbor::decode::Error> {
|
||||
minicbor::decode(buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue