We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434a163 commit 1bf3f81Copy full SHA for 1bf3f81
pycardano/serialization.py
@@ -532,6 +532,8 @@ def _restore_typed_primitive(
532
if not isinstance(v, list):
533
raise DeserializeException(f"Expected type list but got {type(v)}")
534
return IndefiniteList([_restore_typed_primitive(t, w) for w in v])
535
+ elif isclass(t) and t == ByteString:
536
+ return ByteString(v)
537
elif isclass(t) and issubclass(t, IndefiniteList):
538
try:
539
return IndefiniteList(v)
0 commit comments