apply Emily's suggestions

This commit is contained in:
fanghr 2022-06-06 21:19:51 +08:00 committed by Hongrui Fang
parent 8f9d9521c2
commit 76a9cf79ba
4 changed files with 24 additions and 24 deletions

View file

@ -369,9 +369,9 @@ newtype PProposalVotes (s :: S)
deriving (PlutusType, PIsData) via (DerivePNewtype PProposalVotes (PMap 'Unsorted PResultTag PInteger))
-- | Retract votes given the option and the amount of votes.
pretractVotes :: Term s (PProposalVotes :--> PResultTag :--> PInteger :--> PProposalVotes)
pretractVotes :: Term s (PResultTag :--> PInteger :--> PProposalVotes :--> PProposalVotes)
pretractVotes = phoistAcyclic $
plam $ \votes rt count ->
plam $ \rt count votes ->
let voteMap :: Term _ (PMap 'Unsorted PResultTag PInteger)
voteMap = pto votes
in pcon $