check the amount of cosigners while cosigning
This commit is contained in:
parent
44d6267004
commit
f9ddda4cc0
3 changed files with 47 additions and 44 deletions
|
|
@ -14,7 +14,7 @@ import Agora.Proposal (
|
|||
PProposalDatum (PProposalDatum),
|
||||
PProposalRedeemer (..),
|
||||
PProposalVotes (PProposalVotes),
|
||||
Proposal (governorSTAssetClass, stakeSTAssetClass),
|
||||
Proposal (..),
|
||||
ProposalStatus (..),
|
||||
pretractVotes,
|
||||
pwinner',
|
||||
|
|
@ -429,6 +429,9 @@ proposalValidator proposal =
|
|||
# newSigs
|
||||
# proposalF.cosigners
|
||||
|
||||
pguardC "Less cosigners than maximum limit" $
|
||||
plength # updatedSigs #< pconstant proposal.maximumCosigners
|
||||
|
||||
pguardC "Cosigners are unique" $
|
||||
pisUniq' # updatedSigs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue