Skip to content

Commit

Permalink
More PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdvisscher committed Sep 29, 2022
1 parent f418fa1 commit 8fe1f4e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ checkTxConstraint ctx@ScriptContext{scriptContextTxInfo} = \case
$ maybe False (isNoOutputDatum . txOutDatum . txInInfoResolved) (PV2.findTxInByTxOutRef txOutRef scriptContextTxInfo)
MustSpendScriptOutput txOutRef rdmr mRefTxOutRef ->
traceIfFalse "L8" -- "Script output not spent"
-- Unfortunately we can't check the redeemer, because TxInfo only
-- gives us the redeemer's hash, but 'MustSpendScriptOutput' gives
-- us the full redeemer
$ rdmr `elem` (txInfoRedeemers scriptContextTxInfo)
&& isJust (PV2.findTxInByTxOutRef txOutRef scriptContextTxInfo)
&& maybe True (\ref -> isJust (PV2.findTxRefInByTxOutRef ref scriptContextTxInfo)) mRefTxOutRef
Expand Down

0 comments on commit 8fe1f4e

Please sign in to comment.