Skip to content

Commit

Permalink
Make ledger CDDL format the default in build and build-raw commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Aug 8, 2022
1 parent edbef89 commit e5a86b1
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions cardano-cli/src/Cardano/CLI/Shelley/Parsers.hs
Expand Up @@ -718,7 +718,7 @@ pTransaction =
<*> many pMetadataFile
<*> optional pProtocolParamsSourceSpec
<*> optional pUpdateProposalFile
<*> pOutputSerialisation
<*> pure OutputLedgerCDDLSerialisation
<*> (OutputTxBodyOnly <$> pTxBodyFile Output <|> pCalculatePlutusScriptCost)

pChangeAddress :: Parser TxOutChangeAddress
Expand Down Expand Up @@ -755,7 +755,7 @@ pTransaction =
<*> many pMetadataFile
<*> optional pProtocolParamsSourceSpec
<*> optional pUpdateProposalFile
<*> pOutputSerialisation
<*> pure OutputLedgerCDDLSerialisation
<*> pTxBodyFile Output

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

pOutputSerialisation :: Parser OutputSerialisation
pOutputSerialisation =
Opt.flag' OutputLedgerCDDLSerialisation
( Opt.long "cddl-format"
<> Opt.help "Serialise in the ledger CDDL specified CBOR format."
) <|>
Opt.flag OutputCliSerialisation OutputCliSerialisation
( Opt.long "cli-format"
<> Opt.help "Serialise in the cardano-cli CBOR format."
)

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

0 comments on commit e5a86b1

Please sign in to comment.