-
-
Notifications
You must be signed in to change notification settings - Fork 76
Cannot deserialize PlutusV2 script attached to transaction #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Happening for me too with PlutusV1 scripts |
Does the issue still persist in the latest main branch? |
Yes, I can also confirm this is still a problem. It appears as though it's trying to interpret it as a list of bytes rather than just bytes. If you instantiate the Plutus script class with the bytes that throw the error, it instantiates properly. |
I think I figured it out. For types that are just wrappers around Python raw data types, there is no attempt to instantiate them. I ran into this issue when implementing I'll take a stab at this today. pycardano/pycardano/serialization.py Lines 509 to 570 in d1ec439
|
Describe the bug
Trying to deserialize a transaction from cborhex that was generated and hexlified by PyCardano before, I get the following error
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):
Additional context
None
The text was updated successfully, but these errors were encountered: