fix tests
This commit is contained in:
parent
edb982abaa
commit
3d0e42a844
2 changed files with 6 additions and 4 deletions
|
|
@ -310,9 +310,11 @@ unlock ps = builder
|
||||||
removeLocks v c =
|
removeLocks v c =
|
||||||
filter $ \(ProposalLock pid action) ->
|
filter $ \(ProposalLock pid action) ->
|
||||||
pid == defProposalId
|
pid == defProposalId
|
||||||
&& case action of
|
&& not
|
||||||
Voted _ _ -> v
|
( case action of
|
||||||
_ -> c
|
Voted _ _ -> v
|
||||||
|
_ -> c
|
||||||
|
)
|
||||||
|
|
||||||
stakeOutputDatum =
|
stakeOutputDatum =
|
||||||
stakeInputDatum
|
stakeInputDatum
|
||||||
|
|
|
||||||
|
|
@ -424,7 +424,7 @@ specs =
|
||||||
, Unlock.mkTestTree
|
, Unlock.mkTestTree
|
||||||
"unlock an irrelevant stake"
|
"unlock an irrelevant stake"
|
||||||
(Unlock.mkUnockIrrelevantStakes nStakes)
|
(Unlock.mkUnockIrrelevantStakes nStakes)
|
||||||
(Unlock.Validity False True)
|
(Unlock.Validity False False)
|
||||||
, Unlock.mkTestTree
|
, Unlock.mkTestTree
|
||||||
"creator: retract votes"
|
"creator: retract votes"
|
||||||
(Unlock.mkCreatorRetractVotes nStakes)
|
(Unlock.mkCreatorRetractVotes nStakes)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue