remove redundant checks in hasOnlyOneTokenOfAssetClass'
This commit is contained in:
parent
d3b5f6c416
commit
067d69d8f6
1 changed files with 2 additions and 6 deletions
|
|
@ -526,12 +526,8 @@ getMintingPolicySymbol v = mintingPolicySymbol $ mkMintingPolicy v
|
|||
|
||||
-- | The entire value only contains one token of the specific assetclass.
|
||||
hasOnlyOneTokenOfAssetClass' :: AssetClass -> Term s (PValue :--> PBool)
|
||||
hasOnlyOneTokenOfAssetClass' ac@(AssetClass (as, _)) = phoistAcyclic $
|
||||
plam $ \vs -> P.do
|
||||
let ps = pconstant as
|
||||
|
||||
hasOnlyOneTokenOfCurrencySymbol # ps # vs
|
||||
#&& passetClassValueOf' ac # vs #== 1
|
||||
hasOnlyOneTokenOfAssetClass' ac = phoistAcyclic $
|
||||
plam $ \vs -> passetClassValueOf' ac # vs #== 1
|
||||
|
||||
-- | The entire value only contains one token of the specific currency symbol.
|
||||
hasOnlyOneTokenOfCurrencySymbol :: Term s (PCurrencySymbol :--> PValue :--> PBool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue