Skip to content

Commit

Permalink
Make plutus test pass using && .. again
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jul 29, 2021
1 parent da605c6 commit e0797ac
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions hydra-plutus/src/Hydra/Contract/OnChain.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ hydraValidator HeadParameters{participants, policyId} s i ctx =
Final
amountPaid =
lovelaceValueOf 0
in and
[ mustBeSignedByOneOf participants ctx
, all (mustBurnParty ctx policyId) participants
, checkScriptContext @(RedeemerType Hydra) @(DatumType Hydra)
(mustPayToTheScript newState amountPaid)
ctx
]
in mustBeSignedByOneOf participants ctx
&& all (mustBurnParty ctx policyId) participants
&& checkScriptContext @(RedeemerType Hydra) @(DatumType Hydra)
(mustPayToTheScript newState amountPaid)
ctx
_ ->
False
where
Expand Down Expand Up @@ -372,6 +370,7 @@ mustForwardParty ::
Bool
mustForwardParty ctx policyId vk =
traceIfFalse "PT not spent" mustSpendToken
-- TODO(SN): mustProduceToken
where
info = scriptContextTxInfo ctx

Expand Down

0 comments on commit e0797ac

Please sign in to comment.