Closed nielstron closed 9 months ago
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 ByteString
. We should maybe add in a more generic attempt to cast bytes
to their wrapper class.
I'll take a stab at this today.
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