inited tr tests

This commit is contained in:
Jack Hodgkinson 2022-03-18 10:59:46 +00:00
parent b135d8f0b2
commit 131806f9a7
3 changed files with 22 additions and 2 deletions

View file

@ -24,7 +24,12 @@ import Plutus.V1.Ledger.Scripts (Script)
--------------------------------------------------------------------------------
policySucceedsWith :: String -> ClosedTerm PMintingPolicy -> ClosedTerm PData -> _ -> TestTree
policySucceedsWith ::
String ->
ClosedTerm PMintingPolicy ->
ClosedTerm PData ->
_ ->
TestTree
policySucceedsWith tag policy redeemer scriptContext =
scriptSucceeds tag $ compile (policy # redeemer # pconstant scriptContext)