@@ -143,22 +143,18 @@ calculateMinUtxo ::
143143 TxOut ->
144144 Eff effs (Either Text Integer )
145145calculateMinUtxo pabConf datums txOut = do
146- let outs = txOutOpts pabConf datums [txOut]
147- case outs of
148- [] -> pure $ Left " When constructing the transaction, no output values were specified."
149- _ ->
150- join
151- <$> callCommand @ w
152- ShellArgs
153- { cmdName = " cardano-cli"
154- , cmdArgs =
155- mconcat
156- [ [" transaction" , " calculate-min-required-utxo" , " --alonzo-era" ]
157- , outs
158- , [" --protocol-params-file" , pabConf. pcProtocolParamsFile]
159- ]
160- , cmdOutParser = mapLeft Text. pack . parseOnly UtxoParser. feeParser . Text. pack
161- }
146+ join
147+ <$> callCommand @ w
148+ ShellArgs
149+ { cmdName = " cardano-cli"
150+ , cmdArgs =
151+ mconcat
152+ [ [" transaction" , " calculate-min-required-utxo" , " --alonzo-era" ]
153+ , txOutOpts pabConf datums [txOut]
154+ , [" --protocol-params-file" , pabConf. pcProtocolParamsFile]
155+ ]
156+ , cmdOutParser = mapLeft Text. pack . parseOnly UtxoParser. feeParser . Text. pack
157+ }
162158
163159-- | Calculating fee for an unbalanced transaction
164160calculateMinFee ::
@@ -212,6 +208,7 @@ buildTx pabConf privKeys txBudget tx = do
212208 []
213209 )
214210 (Map. keys (Ledger. txSignatures tx))
211+
215212 opts ins mints =
216213 mconcat
217214 [ [" transaction" , " build-raw" , " --alonzo-era" ]
0 commit comments