Closed
Description
Describe the bug
Trying to deserialize a transaction from cborhex that was generated and hexlified by PyCardano before, I get the following error
Jun 07 23:45:25 ********[12055]: pycardano.exception.DeserializeException: Cannot deserialize object:
Jun 07 23:45:25 ********[12055]: [b'Y,\x1e\x01\x00\x002222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222>
Jun 07 23:45:25 *********[12055]: in any valid type from (typing.List[pycardano.plutus.PlutusV2Script], <class 'NoneType'>).
To Reproduce
Serialize a Tx with a PlutusV2 script attached, then deserialize again.
Logs
Logs are above
Expected behavior
Transaction.from_cbor(tx.to_cbor()) should work without problems
Environment and software version (please complete the following information):
- OS: Ubuntu 22
- PyCardano Version: latest
Additional context
None