fix linter errors

This commit is contained in:
Emily Martins 2022-04-19 11:07:11 +02:00
parent 862e9b6079
commit 5649f27d24
5 changed files with 12 additions and 11 deletions

View file

@ -239,7 +239,7 @@ PlutusTx.makeIsDataIndexed
]
-- | Parameters that identify the Proposal validator script.
data Proposal = Proposal
newtype Proposal = Proposal
{ governorSTAssetClass :: AssetClass
}
deriving stock (Show, Eq)

View file

@ -61,7 +61,7 @@ infixr 6 .&
(a :: [PLabeledType])
(b :: [PLabeledType])
(c :: [PLabeledType]).
(RecordMorphism s b c) ->
(RecordMorphism s a b) ->
(RecordMorphism s a c)
RecordMorphism s b c ->
RecordMorphism s a b ->
RecordMorphism s a c
(.&) = (.)

View file

@ -415,7 +415,8 @@ ptokenSpent =
plam $ \tokenClass inputs ->
0
#< pfoldr @PBuiltinList
# ( plam $ \txInInfo' acc -> P.do
# plam
( \txInInfo' acc -> P.do
PTxInInfo txInInfo <- pmatch (pfromData txInInfo')
PTxOut txOut' <- pmatch $ pfromData $ pfield @"resolved" # txInInfo
txOut <- pletFields @'["value"] txOut'