@@ -18,8 +18,8 @@ import Cardano.Api.Query (UTxO, toLedgerUTxO)
1818import qualified Cardano.Api.ReexposeLedger as L
1919import Cardano.Api.Script (ScriptHash , fromShelleyScriptHash )
2020import qualified Cardano.Api.Script as Api
21- import Cardano.Api.Tx.Body (ScriptWitnessIndex (.. ), TxBody , toScriptIndex )
22- import Cardano.Api.Tx.Sign (Tx (.. ), makeSignedTransaction )
21+ import Cardano.Api.Tx.Body (ScriptWitnessIndex (.. ), toScriptIndex )
22+ import Cardano.Api.Tx.Sign (Tx (.. ))
2323
2424import qualified Cardano.Ledger.Alonzo.Scripts as L
2525import qualified Cardano.Ledger.Alonzo.UTxO as Alonzo
@@ -105,12 +105,12 @@ lookupPlutusErrorCode code =
105105-- and return them in a map with their corresponding 'ScriptWitnessIndex' as key.
106106collectPlutusScriptHashes
107107 :: AlonzoEraOnwards era
108- -> TxBody era
108+ -> Tx era
109109 -> UTxO era
110110 -> Map ScriptWitnessIndex ScriptHash
111- collectPlutusScriptHashes aeo tb utxo =
111+ collectPlutusScriptHashes aeo tx utxo =
112112 alonzoEraOnwardsConstraints aeo $
113- let ShelleyTx _ ledgerTx' = makeSignedTransaction [] tb
113+ let ShelleyTx _ ledgerTx' = tx
114114 ledgerUTxO = toLedgerUTxO (convert aeo) utxo
115115 in getPurposes aeo $ L. getScriptsNeeded ledgerUTxO (ledgerTx' ^. L. bodyTxL)
116116 where
0 commit comments