Update types so that ply envlope can be used in Purescript
This commit is contained in:
parent
61281fbf1b
commit
f0917565a2
14 changed files with 115 additions and 61 deletions
|
|
@ -38,10 +38,11 @@ makeEffect ::
|
|||
Term s (PAsData PTxInfo) ->
|
||||
Term s POpaque
|
||||
) ->
|
||||
Term s (PTagged AuthorityTokenTag PCurrencySymbol) ->
|
||||
Term s (PAsData (PTagged AuthorityTokenTag PCurrencySymbol)) ->
|
||||
Term s PValidator
|
||||
makeEffect f atSymbol =
|
||||
makeEffect f atSymbol' =
|
||||
plam $ \datum _redeemer ctx' -> unTermCont $ do
|
||||
atSymbol <- pletC $ pfromData atSymbol'
|
||||
ctx <- pletFieldsC @'["txInfo", "purpose"] ctx'
|
||||
|
||||
-- Convert input datum, PData, into desierable type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue