We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bf3f81 commit 67add7aCopy full SHA for 67add7a
pycardano/serialization.py
@@ -533,6 +533,8 @@ def _restore_typed_primitive(
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
+ if not isinstance(v, bytes):
537
+ raise DeserializeException(f"Expected type bytes but got {type(v)}")
538
return ByteString(v)
539
elif isclass(t) and issubclass(t, IndefiniteList):
540
try:
0 commit comments