Commit 8a4a4a3 1 parent 765222e commit 8a4a4a3 Copy full SHA for 8a4a4a3
File tree 1 file changed +9
-5
lines changed
lib/unit/test/unit/Cardano/Wallet/Delegation
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE ConstraintKinds #-}
2
2
{-# LANGUAGE FlexibleContexts #-}
3
3
{-# LANGUAGE MonoLocalBinds #-}
4
+ {-# LANGUAGE PatternSynonyms #-}
4
5
{-# LANGUAGE ScopedTypeVariables #-}
5
6
{-# LANGUAGE TypeApplications #-}
6
7
@@ -22,7 +23,10 @@ import Cardano.Wallet.Delegation.Model
22
23
( History
23
24
, Operation (.. )
24
25
, Status (Active )
25
- , Transition (.. )
26
+ , pattern Delegate
27
+ , pattern DelegateAndVote
28
+ , pattern Deregister'
29
+ , pattern Vote
26
30
)
27
31
import Cardano.Wallet.Delegation.Properties
28
32
( Step (Step )
@@ -90,10 +94,10 @@ genDelta c h = do
90
94
pool <- genPool c h
91
95
drep <- genRep c h
92
96
elements
93
- [ ApplyTransition ( VoteAndDelegate ( Just drep) ( Just pool)) slot
94
- , ApplyTransition ( VoteAndDelegate Nothing ( Just pool)) slot
95
- , ApplyTransition ( VoteAndDelegate ( Just drep) Nothing ) slot
96
- , ApplyTransition Deregister slot
97
+ [ DelegateAndVote pool drep slot
98
+ , Delegate pool slot
99
+ , Vote drep slot
100
+ , Deregister' slot
97
101
, Rollback slot
98
102
]
99
103
You can’t perform that action at this time.
0 commit comments