You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have been asked a question "what is the script hash used for in PReferenceScript and when can you set it to Nothing"?
Currently the type PlutusScriptOrReferenceInput looks like this:
data PlutusScriptOrReferenceInput lang
= PScript (PlutusScript lang)
| -- | Needed to construct the redeemer pointer map
-- in the case of minting reference scripts where we don't
-- have direct access to the script
PReferenceScript
TxIn
(Maybe ScriptHash)
It seems that, despite the comment, the script hash is nowhere used; I cloned the repo and removed it, adjusted the pattern match in scriptWitnessScript, and everything else just compiled.
The question is, can we remove the field? I'd gladly prepare the PR if we can.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello, I have been asked a question "what is the script hash used for in
PReferenceScript
and when can you set it toNothing
"?Currently the type
PlutusScriptOrReferenceInput
looks like this:It seems that, despite the comment, the script hash is nowhere used; I cloned the repo and removed it, adjusted the pattern match in
scriptWitnessScript
, and everything else just compiled.The question is, can we remove the field? I'd gladly prepare the PR if we can.
Thanks!
The text was updated successfully, but these errors were encountered: