Skip to content

Round trip plutus datum serialization/deserialization error #330

@theeldermillenial

Description

@theeldermillenial

Describe the bug
When adding a script input to a transaction in the transaction builder, the datum is improperly serialized.

To Reproduce
I will create a small working example later today, but the basic steps are:

  1. Create a custom plutus data class
  2. Create a datum, print the datum hash
  3. Create a transaction with the transaction builder, add a script input
  4. Build the transaction and serialize to cbor
  5. Deserialize the transaction, generate the hash of the datum in the witness set

Additional context: Generating the hash of the datum before serialization is correct.

Expected behavior
Roundtrip serializing and deserializing of a transaction without mutations in the data.

Environment and software version (please complete the following information):

  • OS: Ubuntu
  • PyCardano Version 0.10.0 (also tried with latest on Github)

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