Skip to content

Commit

Permalink
Restore --cddl-format as a hidden switch to avoid breaking 3rd party …
Browse files Browse the repository at this point in the history
…tooling. The restore switch has no effect
  • Loading branch information
newhoggy committed Nov 4, 2022
1 parent 6ede1be commit bb00609
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cardano-cli/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
- Allow reading and writing text envelope files from pipes([PR4384](https://github.com/input-output-hk/cardano-node/pull/4384))
- Update cardano transaction view command to render inline datums and reference inputs ([PR4089](https://github.com/input-output-hk/cardano-node/pull/4089))
- Switch default era in cardano-cli from Alonzo to Babbage ([PR4485](https://github.com/input-output-hk/cardano-node/pull/4485))
- Default to the ledger's CDDL format for transaction body creation by removing flags `--cddl-format` and `--cli-format` from `build` and `build-raw` ([PR 4303](https://github.com/input-output-hk/cardano-node/pull/4303))
- For the `build` and `build-raw` commands, always use ledger's CDDL format for transaction body creation.
Remove the `cli-format` flag and make `--cddl-format` deprecated and hidden ([PR 4303](https://github.com/input-output-hk/cardano-node/pull/4303))
- Allow reading signing keys from a pipe ([PR 4342](https://github.com/input-output-hk/cardano-node/pull/4342))

## 1.35.3 -- August 2022
Expand Down
10 changes: 10 additions & 0 deletions cardano-cli/src/Cardano/CLI/Shelley/Parsers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ pTransaction =
<*> many pMetadataFile
<*> optional pProtocolParamsSourceSpec
<*> optional pUpdateProposalFile
<* pOutputSerialisation -- TODO delete in the next release after 1.35.4
<*> (OutputTxBodyOnly <$> pTxBodyFile Output <|> pCalculatePlutusScriptCost)

pChangeAddress :: Parser TxOutChangeAddress
Expand Down Expand Up @@ -754,6 +755,7 @@ pTransaction =
<*> many pMetadataFile
<*> optional pProtocolParamsSourceSpec
<*> optional pUpdateProposalFile
<* pOutputSerialisation -- TODO delete in the next release after 1.35.4
<*> pTxBodyFile Output

pTransactionSign :: Parser TransactionCmd
Expand Down Expand Up @@ -1754,6 +1756,14 @@ pOutputFormat =
<> Opt.value OutputFormatBech32
)

pOutputSerialisation :: Parser ()
pOutputSerialisation = void $
Opt.flag' ()
( Opt.long "cddl-format"
<> Opt.help "Serialise in the ledger CDDL specified CBOR format."
<> Opt.hidden
)

pMaybeOutputFile :: Parser (Maybe OutputFile)
pMaybeOutputFile =
optional $
Expand Down

0 comments on commit bb00609

Please sign in to comment.