Skip to content

Commit

Permalink
Rename collectScriptHashes to collectPlutusScriptHashes
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Feb 4, 2025
1 parent 99112e1 commit 29dae50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cardano-api/internal/Cardano/Api/Plutus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Cardano.Api.Plutus
( DebugPlutusFailure (..)
, renderDebugPlutusFailure
, collectScriptHashes
, collectPlutusScriptHashes
)
where

Expand Down Expand Up @@ -101,14 +101,14 @@ lookupPlutusErrorCode code =
Nothing -> "Unknown error code: " <> code
-}

-- | Collect all script hashes that are needed to validate the given transaction
-- | Collect all plutus script hashes that are needed to validate the given transaction
-- and return them in a map with their corresponding 'ScriptWitnessIndex' as key.
collectScriptHashes
collectPlutusScriptHashes
:: AlonzoEraOnwards era
-> TxBody era
-> UTxO era
-> Map ScriptWitnessIndex ScriptHash
collectScriptHashes aeo tb utxo =
collectPlutusScriptHashes aeo tb utxo =
alonzoEraOnwardsConstraints aeo $
let ShelleyTx _ ledgerTx' = makeSignedTransaction [] tb
ledgerUTxO = toLedgerUTxO (convert aeo) utxo
Expand Down
4 changes: 2 additions & 2 deletions cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ module Cardano.Api
, examplePlutusScriptAlwaysFails

-- ** Script data
, collectScriptHashes
, collectPlutusScriptHashes
, HashableScriptData
, hashScriptDataBytes
, getOriginalScriptDataBytes
Expand Down Expand Up @@ -1123,7 +1123,7 @@ import Cardano.Api.Monad.Error
import Cardano.Api.NetworkId
import Cardano.Api.OperationalCertificate
import Cardano.Api.Orphans ()
import Cardano.Api.Plutus (collectScriptHashes)
import Cardano.Api.Plutus (collectPlutusScriptHashes)
import Cardano.Api.Pretty
import Cardano.Api.Protocol
import Cardano.Api.ProtocolParameters
Expand Down

0 comments on commit 29dae50

Please sign in to comment.