Skip to content

Cannot deserialize PlutusV2 script attached to transaction #251

Closed
@nielstron

Description

@nielstron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions