Skip to content

Commit

Permalink
Propage changes in:
Browse files Browse the repository at this point in the history
- Cardano.CLI.Read
- Cardano.CLI.Legacy.Options
- Cardano.CLI.EraBased.Options.Transaction
  • Loading branch information
Jimbo4350 committed Jul 24, 2024
1 parent 90e7b69 commit bd48d96
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
24 changes: 12 additions & 12 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,19 @@ pTransactionBuildCmd era envCli = do
<*> pNetworkId envCli
<*> optional pScriptValidity
<*> optional pWitnessOverride
<*> some (pTxIn AutoBalance)
<*> some (pTxIn sbe AutoBalance)
<*> many pReadOnlyReferenceTxIn
<*> many pRequiredSigner
<*> many pTxInCollateral
<*> optional pReturnCollateral
<*> optional pTotalCollateral
<*> many pTxOut
<*> pChangeAddress
<*> optional (pMintMultiAsset AutoBalance)
<*> optional (pMintMultiAsset sbe AutoBalance)
<*> optional pInvalidBefore
<*> pInvalidHereafter sbe
<*> many (pCertificateFile AutoBalance)
<*> many (pWithdrawal AutoBalance)
<*> many (pCertificateFile sbe AutoBalance)
<*> many (pWithdrawal sbe AutoBalance)
<*> pTxMetadataJsonSchema
<*> many
( pScriptFor
Expand Down Expand Up @@ -232,18 +232,18 @@ pTransactionBuildEstimateCmd era _envCli = do
<*> optional pNumberOfByronKeyWitnesses
<*> pProtocolParamsFile
<*> pTotalUTxOValue
<*> some (pTxIn ManualBalance)
<*> some (pTxIn sbe ManualBalance)
<*> many pReadOnlyReferenceTxIn
<*> many pRequiredSigner
<*> many pTxInCollateral
<*> optional pReturnCollateral
<*> many pTxOut
<*> pChangeAddress
<*> optional (pMintMultiAsset ManualBalance)
<*> optional (pMintMultiAsset sbe ManualBalance)
<*> optional pInvalidBefore
<*> pInvalidHereafter sbe
<*> many (pCertificateFile ManualBalance)
<*> many (pWithdrawal ManualBalance)
<*> many (pCertificateFile sbe ManualBalance)
<*> many (pWithdrawal sbe ManualBalance)
<*> optional pTotalCollateral
<*> optional pReferenceScriptSize
<*> pTxMetadataJsonSchema
Expand Down Expand Up @@ -275,19 +275,19 @@ pTransactionBuildRaw era =
fmap TransactionBuildRawCmd $
TransactionBuildRawCmdArgs era
<$> optional pScriptValidity
<*> some (pTxIn ManualBalance)
<*> some (pTxIn era ManualBalance)
<*> many pReadOnlyReferenceTxIn
<*> many pTxInCollateral
<*> optional pReturnCollateral
<*> optional pTotalCollateral
<*> many pRequiredSigner
<*> many pTxOut
<*> optional (pMintMultiAsset ManualBalance)
<*> optional (pMintMultiAsset era ManualBalance)
<*> optional pInvalidBefore
<*> pInvalidHereafter era
<*> pTxFee
<*> many (pCertificateFile ManualBalance)
<*> many (pWithdrawal ManualBalance)
<*> many (pCertificateFile era ManualBalance)
<*> many (pWithdrawal era ManualBalance)
<*> pTxMetadataJsonSchema
<*> many (pScriptFor "auxiliary-script-file" Nothing "Filepath of auxiliary script(s)")
<*> many pMetadataFile
Expand Down
16 changes: 8 additions & 8 deletions cardano-cli/src/Cardano/CLI/Legacy/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -353,19 +353,19 @@ pTransaction envCli =
<*> pNetworkId envCli
<*> optional pScriptValidity
<*> optional pWitnessOverride
<*> some (pTxIn AutoBalance)
<*> some (pTxIn ShelleyBasedEraConway AutoBalance)
<*> many pReadOnlyReferenceTxIn
<*> many pRequiredSigner
<*> many pTxInCollateral
<*> optional pReturnCollateral
<*> optional pTotalCollateral
<*> many pTxOut
<*> pChangeAddress
<*> optional (pMintMultiAsset AutoBalance)
<*> optional (pMintMultiAsset ShelleyBasedEraConway AutoBalance)
<*> optional pInvalidBefore
<*> optional pLegacyInvalidHereafter
<*> many (pCertificateFile AutoBalance)
<*> many (pWithdrawal AutoBalance)
<*> many (pCertificateFile ShelleyBasedEraConway AutoBalance)
<*> many (pWithdrawal ShelleyBasedEraConway AutoBalance)
<*> pTxMetadataJsonSchema
<*> many
( pScriptFor
Expand Down Expand Up @@ -395,19 +395,19 @@ pTransaction envCli =
TransactionBuildRawCmd
<$> pLegacyCardanoEra envCli
<*> optional pScriptValidity
<*> some (pTxIn ManualBalance)
<*> some (pTxIn ShelleyBasedEraConway ManualBalance)
<*> many pReadOnlyReferenceTxIn
<*> many pTxInCollateral
<*> optional pReturnCollateral
<*> optional pTotalCollateral
<*> many pRequiredSigner
<*> many pTxOut
<*> optional (pMintMultiAsset ManualBalance)
<*> optional (pMintMultiAsset ShelleyBasedEraConway ManualBalance)
<*> optional pInvalidBefore
<*> optional pLegacyInvalidHereafter
<*> pTxFee
<*> many (pCertificateFile ManualBalance)
<*> many (pWithdrawal ManualBalance)
<*> many (pCertificateFile ShelleyBasedEraConway ManualBalance)
<*> many (pWithdrawal ShelleyBasedEraConway ManualBalance)
<*> pTxMetadataJsonSchema
<*> many (pScriptFor "auxiliary-script-file" Nothing "Filepath of auxiliary script(s)")
<*> many pMetadataFile
Expand Down
3 changes: 2 additions & 1 deletion cardano-cli/src/Cardano/CLI/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ renderScriptDataError = \case
readScriptDatumOrFile
:: ScriptDatumOrFile witctx
-> ExceptT ScriptDataError IO (ScriptDatum witctx)
readScriptDatumOrFile (ScriptDatumOrFileForTxIn df) =
readScriptDatumOrFile (ScriptDatumOrFileForTxIn Nothing) = pure $ ScriptDatumForTxIn Nothing
readScriptDatumOrFile (ScriptDatumOrFileForTxIn (Just df)) =
ScriptDatumForTxIn . Just
<$> readScriptDataOrFile df
readScriptDatumOrFile InlineDatumPresentAtTxIn = pure InlineScriptDatum
Expand Down

0 comments on commit bd48d96

Please sign in to comment.