Skip to content

Commit

Permalink
post merge mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontin committed Aug 29, 2024
1 parent 82f2b7f commit ee333f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cooked/MockChain/Balancing.hs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ estimateTxSkelFee skel fee mCollaterals = do
-- We retrieve the estimate number of required witness in the transaction
let nkeys = Cardano.estimateTransactionKeyWitnessCount txBodyContent
-- We need to reconstruct an index to pass to the fee estimate function
(knownTxORefs, knownTxOuts) <- unzip . Map.toList <$> lookupUtxos (txSkelKnownTxOutRefs skel <> Set.toList collateralIns)
(knownTxORefs, knownTxOuts) <- unzip . Map.toList <$> lookupUtxos (txSkelKnownTxOutRefs skel <> collateralIns)
index <- case forM knownTxORefs Ledger.toCardanoTxIn of
Left err -> throwError $ MCEGenerationError $ ToCardanoError "estimateTxSkelFee: unable to generate TxIn" err
Right txInL -> return $ Cardano.UTxO $ Map.fromList $ zip txInL $ Cardano.toCtxUTxOTxOut . Ledger.getTxOut <$> knownTxOuts
Expand Down

0 comments on commit ee333f6

Please sign in to comment.