Skip to content

Commit

Permalink
Add support for ByteString type in PlutusData
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Oct 23, 2023
1 parent 789b077 commit 798c1e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/pycardano/test_plutus.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ class A(PlutusData):
CONSTR_ID = 0
a: int
b: bytes
c: List[int]
c: ByteString
d: List[int]

@dataclass
class C(PlutusData):
Expand All @@ -424,7 +425,7 @@ class B(PlutusData):
s = id_map(B)
assert (
s
== "cons[B](1013743048;a:int,c:cons[A](0;a:int,b:bytes,c:list<int>),d:map<bytes,cons[C](892310804;x:any,y:any,z:any,w:list)>,e:union<cons[A](0;a:int,b:bytes,c:list<int>),cons[C](892310804;x:any,y:any,z:any,w:list)>)"
== "cons[B](3809077817;a:int,c:cons[A](0;a:int,b:bytes,c:bytes,d:list<int>),d:map<bytes,cons[C](892310804;x:any,y:any,z:any,w:list)>,e:union<cons[A](0;a:int,b:bytes,c:bytes,d:list<int>),cons[C](892310804;x:any,y:any,z:any,w:list)>)"
)


Expand Down

0 comments on commit 798c1e3

Please sign in to comment.