Skip to content
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

broken consignment YAML deserialization #146

Closed
zoedberg opened this issue Mar 15, 2024 · 0 comments · Fixed by BP-WG/bp-core#80
Closed

broken consignment YAML deserialization #146

zoedberg opened this issue Mar 15, 2024 · 0 comments · Fixed by BP-WG/bp-core#80

Comments

@zoedberg
Copy link
Contributor

Exporting a binary consignment into YAML format and then reconstructing it I receive an error. Here the commands I used:

rgb inspect ./rcv_compose_4.rgbc ./out_4.yaml
RGB: command-line wallet for RGB smart contracts
     by LNP/BP Standards Association

Unable to find or parse config file; using config defaults

rgb reconstruct ./out_4.yaml ./out_4.rgbc
RGB: command-line wallet for RGB smart contracts
     by LNP/BP Standards Association

Unable to find or parse config file; using config defaults
Error: bundles[1].bundle.knownTransitions.3c196699faff404379328a74e60f0d56996fd954f23a5149d650c71dfcdb70f9.assignments.4000.items[1].seal.data.txid: untagged and internally tagged enums do not support enum input at line 179 column 25

I'm using CLI from master branch (commit ac1036d).
In this zip you can find the consignment in binary and YAML format: consignment.zip

The error seems related to incorrect usage of the untagged serde attribute and arises only with consignments that have more than 1 AnchoredBundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant