Skip to content

Commit

Permalink
Add explicit states for TestState wallet flavors.
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed May 26, 2023
1 parent c9f170c commit 371e45f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 4 additions & 2 deletions lib/wallet/src/Cardano/Wallet/Flavor.hs
Expand Up @@ -76,7 +76,8 @@ data WalletFlavors
| SharedF
| BenchByronF
| BenchShelleyF
| TestStateF
| TestAddressesWithCredsF
| TestOnlyAddressesF

type family FlavorOf s where
FlavorOf (SeqState n ShelleyKey) = 'ShelleyF
Expand All @@ -94,7 +95,8 @@ type AllFlavors =
, 'SharedF
, 'BenchByronF
, 'BenchShelleyF
, 'TestStateF
, 'TestAddressesWithCredsF
, 'TestOnlyAddressesF
]

type IncludingStates ss s = Including AllFlavors ss s
Expand Down
10 changes: 1 addition & 9 deletions lib/wallet/test/unit/Cardano/WalletSpec.hs
Expand Up @@ -44,13 +44,7 @@ import Cardano.Wallet
, throttle
)
import Cardano.Wallet.Address.Derivation
( Depth (..)
, DerivationIndex (..)
, DerivationType (..)
, HardDerivation (..)
, Index
, Role (..)
)
( Depth (..), DerivationIndex (..), HardDerivation (..), Role (..) )
import Cardano.Wallet.Address.Derivation.Shelley
( ShelleyKey (..), generateKeyFromSeed )
import Cardano.Wallet.Address.Discovery
Expand Down Expand Up @@ -202,8 +196,6 @@ import Data.List
( nubBy, sort, sortOn )
import Data.List.NonEmpty
( NonEmpty (..) )
import Data.Map.Strict
( Map )
import Data.Maybe
( catMaybes, fromMaybe, isJust, isNothing, mapMaybe )
import Data.Ord
Expand Down

0 comments on commit 371e45f

Please sign in to comment.