Skip to content

Commit

Permalink
WIP: minimum reproducer for initTx choking
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Aug 13, 2024
1 parent ec7fd00 commit d8e7112
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hydra-plutus/src/Hydra/Contract/HeadTokens.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,9 @@ unappliedMintingPolicy =

-- | Get the applied head minting policy script given a seed 'TxOutRef'.
mintingPolicyScript :: TxOutRef -> SerialisedScript
mintingPolicyScript txOutRef =
serialiseCompiledCode $
unappliedMintingPolicy
`PlutusTx.unsafeApplyCode` PlutusTx.liftCode plcVersion110 txOutRef
mintingPolicyScript _txOutRef =
serialiseCompiledCode
$$(PlutusTx.compile [||\ctx -> check $ not $ null $ txInfoInputs $ scriptContextTxInfo ctx||])

-- * Create PolicyId

Expand Down

0 comments on commit d8e7112

Please sign in to comment.