Skip to content

Commit

Permalink
correct Eq (SeqState DummyTarget) instance
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed May 24, 2019
1 parent 1a44b2b commit ce69389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/core/src/Cardano/Wallet/Primitive/AddressDiscovery.hs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ nextAddresses _ !key (AddressPoolGap !g) !cc !fromIx =
-- | An ordered set of pending indexes. This keep track of indexes used
newtype PendingIxs = PendingIxs
{ pendingIxsToList :: [Index 'Soft 'AddressK] }
deriving stock (Generic, Show)
deriving stock (Generic, Show, Eq)
instance NFData PendingIxs

-- | An empty pending set of change indexes.
Expand Down
3 changes: 1 addition & 2 deletions lib/core/test/unit/Cardano/Wallet/DBSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ data DummyTarget
instance KeyToAddress DummyTarget where
keyToAddress = Address . unXPub . getKey

instance Eq (SeqState DummyTarget) where
_ == _ = True
deriving instance Eq (SeqState DummyTarget)

instance Arbitrary (Wallet (SeqState DummyTarget) DummyTarget) where
shrink _ = []
Expand Down

0 comments on commit ce69389

Please sign in to comment.