remove infinities in ProposalTime, fix test build

This commit is contained in:
Emily Martins 2022-04-28 17:00:19 +02:00
parent c8f5c6af8f
commit cf14d9edd8
5 changed files with 30 additions and 27 deletions

View file

@ -16,10 +16,10 @@ import Agora.Proposal (
ProposalId (ProposalId),
ProposalRedeemer (Cosign),
ProposalStatus (Draft),
ProposalVotes (ProposalVotes),
ResultTag (ResultTag),
cosigners,
effects,
emptyVotesFor,
proposalId,
status,
thresholds,
@ -70,7 +70,12 @@ tests =
, status = Draft
, cosigners = [signer]
, thresholds = Shared.defaultProposalThresholds
, votes = ProposalVotes AssocMap.empty
, votes =
emptyVotesFor $
AssocMap.fromList
[ (ResultTag 0, [])
, (ResultTag 1, [])
]
}
)
(Cosign [signer2])

View file

@ -43,7 +43,6 @@ import Agora.Proposal (
ProposalDatum (..),
ProposalId (..),
ProposalStatus (..),
ProposalVotes (..),
ResultTag (..),
emptyVotesFor,
)

View file

@ -129,5 +129,5 @@ defaultProposalThresholds =
ProposalThresholds
{ countVoting = Tagged 1000
, create = Tagged 1
, vote = Tagged 10
, startVoting = Tagged 10
}