File tree Expand file tree Collapse file tree
cardano-cli/src/Cardano/CLI Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -944,7 +944,8 @@ constructTxBodyContent
944944 readOnlyRefIns
945945
946946 validatedCollateralTxIns <- validateTxInsCollateral sbe txinsc
947- validatedRefInputs <- validateTxInsReference sbe allReferenceInputs
947+ -- TODO provide UTXO and datum
948+ validatedRefInputs <- validateTxInsReference sbe allReferenceInputs mempty
948949 validatedTotCollateral <-
949950 first TxCmdNotSupportedInEraValidationError $ validateTxTotalCollateral sbe mTotCollateral
950951 validatedRetCol <-
@@ -1214,12 +1215,14 @@ validateTxInsCollateral era txins = do
12141215 & maybe (txFeatureMismatch era TxFeatureCollateral ) Right
12151216
12161217validateTxInsReference
1217- :: ShelleyBasedEra era
1218+ :: Applicative (BuildTxWith build )
1219+ => ShelleyBasedEra era
12181220 -> [TxIn ]
1219- -> Either TxCmdError (TxInsReference era )
1220- validateTxInsReference _ [] = return TxInsReferenceNone
1221- validateTxInsReference sbe allRefIns = do
1222- forShelleyBasedEraInEonMaybe sbe (\ supported -> TxInsReference supported allRefIns)
1221+ -> Set HashableScriptData
1222+ -> Either TxCmdError (TxInsReference build era )
1223+ validateTxInsReference _ [] _ = return TxInsReferenceNone
1224+ validateTxInsReference sbe allRefIns datumSet = do
1225+ forShelleyBasedEraInEonMaybe sbe (\ supported -> TxInsReference supported allRefIns (pure datumSet))
12231226 & maybe (txFeatureMismatch sbe TxFeatureReferenceInputs ) Right
12241227
12251228getAllReferenceInputs
Original file line number Diff line number Diff line change @@ -923,9 +923,9 @@ friendlyAuxScripts = \case
923923 TxAuxScriptsNone -> Null
924924 TxAuxScripts _ scripts -> String $ textShow scripts
925925
926- friendlyReferenceInputs :: TxInsReference era -> Aeson. Value
926+ friendlyReferenceInputs :: TxInsReference era build -> Aeson. Value
927927friendlyReferenceInputs TxInsReferenceNone = Null
928- friendlyReferenceInputs (TxInsReference _ txins) = toJSON txins
928+ friendlyReferenceInputs (TxInsReference _ txins _ ) = toJSON txins
929929
930930friendlyInputs :: [(TxIn , build )] -> Aeson. Value
931931friendlyInputs = toJSON . map fst
You can’t perform that action at this time.
0 commit comments