Skip to content

Commit 7ef5632

Browse files
committed
"list" (finite ones) are also allowed plutus datum objects
1 parent 361ae86 commit 7ef5632

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pycardano/plutus.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def __deepcopy__(self, memo):
781781
return self.__class__.from_cbor(self.to_cbor_hex())
782782

783783

784-
RawDatum = Union[PlutusData, dict, int, bytes, IndefiniteList, RawCBOR, CBORTag]
784+
RawDatum = Union[PlutusData, dict, int, bytes, list, IndefiniteList, RawCBOR, CBORTag]
785785

786786

787787
@dataclass(repr=False)
@@ -910,7 +910,9 @@ def __deepcopy__(self, memo):
910910
return self.__class__.from_cbor(self.to_cbor_hex())
911911

912912

913-
Datum = Union[PlutusData, dict, int, bytes, IndefiniteList, RawCBOR, RawPlutusData]
913+
Datum = Union[
914+
PlutusData, dict, int, bytes, list, IndefiniteList, RawCBOR, RawPlutusData
915+
]
914916
"""Plutus Datum type. A Union type that contains all valid datum types."""
915917

916918

0 commit comments

Comments
 (0)