How to serialize to disk for cardano-cli tx view? #471
Unanswered
ross-spencer
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Pycardano is able to decode this transaction correctly: I suspect it is because the EmptyOrderedSet/NonEmptyOrderedSet introduced in the Chang/Plomin HF. Is your cardano-cli up to date? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Previously it was straightforward to serialize a pycardano transaction to disk for view in cardano-cli.
Given the following example successfully published: https://preprod.cexplorer.io/tx/61fb61071e942d230f8efad20352e1652075b7892b6298262386cfb44c2ad950?tab=overview
And visible here:
{ "type": "Witnessed Tx BabbageEra", "description": "Ledger Cddl Format", "cborHex": "84a500d9010281825820f1bab595d976dcc0c9b9356d10cabd364516f204c417832d7eb7350fa1a17992010182825839002c55bc8f20e402d3a5f87d362a653f2b5dec94a37652fea8723ab350abbcbed52f93d9c547a456690b62e448e7bb9e105d0e6f545f9209d31a000f4240825839002c55bc8f20e402d3a5f87d362a653f2b5dec94a37652fea8723ab350abbcbed52f93d9c547a456690b62e448e7bb9e105d0e6f545f9209d31b0000000253d50bb3021a0002938d031a066c614a081a066c533aa100d9010281825820dcaa0d643fda34e794231ef3bb7b9885bffa13c0a43f83867b1d8f0b21d493bf584079d178b55116a32496922131506330763437d79e2a5271860d92e738f78b0abede43acfe45dd20b92a14f25a28d6ab5b210f8e9481b18f0a02f5655679ef7803f5f6" }I now get the error when trying to interpret it:
cardano-cli debug transaction view --tx-file tx_claim.signed Failed to decode the ledger's CDDL serialisation format. TextEnvelopeCddl error: tx_claim.signed: TextEnvelopeCDDL CBOR decoding error: DecoderErrorDeserialiseFailure "Shelley Tx" (DeserialiseFailure 3 "expected list len or indef")Does anyone have any tips/ideas about what may be wrong?
Code snippet below. Again, it successfully builds and submits a transaction, something seems incorrect in the CBOR (at least from cardano-cli's perspective.
Beta Was this translation helpful? Give feedback.
All reactions