@@ -68,6 +68,7 @@ import Cardano.Api.Era.Internal.Eon.ShelleyBasedEra
6868import Cardano.Api.Era.Internal.Feature
6969import Cardano.Api.Error
7070import Cardano.Api.Experimental.Tx.Internal.Certificate qualified as Exp
71+ import Cardano.Api.Experimental.Tx.Internal.Type (UnsignedTx )
7172import Cardano.Api.Ledger.Internal.Reexport qualified as L
7273import Cardano.Api.Plutus
7374import Cardano.Api.Pretty
@@ -579,7 +580,8 @@ data ScriptExecutionError
579580 -- in the transaction nor in the UTxO as a reference script"
580581 ScriptErrorRedeemerPointsToUnknownScriptHash ScriptWitnessIndex
581582 | -- | A redeemer pointer points to a script that does not exist.
582- ScriptErrorMissingScript
583+ forall era . ScriptErrorMissingScript
584+ (UnsignedTx era )
583585 ScriptWitnessIndex -- The invalid pointer
584586 ResolvablePointers -- A mapping a pointers that are possible to resolve
585587 | -- | A cost model was missing for a language which was used.
@@ -627,11 +629,12 @@ instance Error ScriptExecutionError where
627629 [ pretty (renderScriptWitnessIndex scriptWitness)
628630 , " points to a script hash that is not known."
629631 ]
630- ScriptErrorMissingScript rdmrPtr resolveable ->
632+ ScriptErrorMissingScript tx rdmrPtr resolveable ->
631633 mconcat
632634 [ " The redeemer pointer: " <> pshow rdmrPtr <> " points to a Plutus "
633635 , " script that does not exist.\n "
634636 , " The pointers that can be resolved are: " <> pshow resolveable
637+ , " Tx: " <> pshow tx
635638 ]
636639 ScriptErrorMissingCostModel language ->
637640 " No cost model was found for language " <> pshow language
@@ -772,7 +775,7 @@ evaluateTransactionExecutionUnitsShelley sbe systemstart epochInfo (LedgerProtoc
772775 -- the redeemer pointer will always point to a Plutus script.
773776 L. MissingScript indexOfScriptWitnessedItem resolveable ->
774777 let scriptWitnessedItemIndex = toScriptIndex aOnwards indexOfScriptWitnessedItem
775- in ScriptErrorMissingScript scriptWitnessedItemIndex $
778+ in ScriptErrorMissingScript ( error " ignore " ) scriptWitnessedItemIndex $
776779 ResolvablePointers sbe $
777780 Map. map extractScriptBytesAndLanguage resolveable
778781 L. NoCostModelInLedgerState l -> ScriptErrorMissingCostModel l
0 commit comments