File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/Cardano/CLI/EraBased/Transaction Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ library
253253 cardano-ledger-conway,
254254 cardano-ledger-core,
255255 cardano-ledger-dijkstra,
256+ cardano-ledger-mary,
256257 cardano-ping ^>= 0.9 ,
257258 cardano-prelude,
258259 cardano-protocol-tpraos,
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ import Cardano.CLI.Type.Error.TxCmdError
7474import Cardano.CLI.Type.Error.TxValidationError
7575import Cardano.CLI.Type.Output (renderScriptCostsWithScriptHashesMap )
7676import Cardano.Ledger.Api (allInputsTxBodyF , bodyTxL )
77+ import Cardano.Ledger.Mary.Value qualified as L
7778import Cardano.Prelude (putLByteString )
7879
7980import RIO hiding (toList )
@@ -1010,7 +1011,6 @@ runTxBuild
10101011 -- as it's not possible to call this function with ByronEra
10111012 let era = toCardanoEra sbe
10121013 inputsThatRequireWitnessing = [input | (input, _) <- inputsAndMaybeScriptWits]
1013-
10141014 let allReferenceInputs =
10151015 getAllReferenceInputs
10161016 (map snd inputsAndMaybeScriptWits)
@@ -1021,6 +1021,17 @@ runTxBuild
10211021 (map snd proposals)
10221022 readOnlyRefIns
10231023
1024+ let (ma, _) = mintValueWithScriptWits
1025+ flat = L. flattenMultiAsset ma
1026+ if not $ null flat
1027+ then
1028+ error $
1029+ unlines
1030+ [ " allReferenceInputs:" <> show allReferenceInputs
1031+ , " mintValueWithScriptWits:" <> show mintValueWithScriptWits
1032+ ]
1033+ else return ()
1034+
10241035 let allTxInputs = inputsThatRequireWitnessing ++ allReferenceInputs ++ txinsc
10251036 localNodeConnInfo =
10261037 LocalNodeConnectInfo
You can’t perform that action at this time.
0 commit comments