Skip to content

Commit

Permalink
Fix compilation errors (to be merged back)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jun 2, 2023
1 parent 1918bc0 commit 1ccc89c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion lib/wallet/src/Cardano/Wallet/DB/Store/WalletState/Store.hs
Expand Up @@ -25,6 +25,8 @@ import Cardano.Wallet.DB.Store.Submissions.Operations
( mkStoreSubmissions )
import Cardano.Wallet.DB.WalletState
( DeltaWalletState, DeltaWalletState1 (..), WalletState (..) )
import Cardano.Wallet.Flavor
( WalletFlavorS, keyOfWallet )
import Control.Monad.Class.MonadThrow
( throwIO )
import Data.Generics.Internal.VL.Lens
Expand Down Expand Up @@ -80,7 +82,7 @@ mkStoreWallet wF wid = mkUpdateStore load write update

update = updateLoad load throwIO $ updateSequence update1
where
update1 _ (ReplacePrologue prologue) = insertPrologue wid prologue
update1 _ (ReplacePrologue prologue') = insertPrologue wid prologue'
update1 s (UpdateCheckpoints delta) =
updateS checkpointsStore (Just $ checkpoints s) delta
update1 s (UpdateSubmissions deltas) =
Expand Down
Expand Up @@ -12,10 +12,8 @@ import Prelude

import Cardano.DB.Sqlite
( ForeignKeysSetting (..), SqliteContext (runQuery) )
import Cardano.Wallet.Address.Derivation.Shelley
( ShelleyKey )
import Cardano.Wallet.Address.Discovery.Sequential
( SeqState )
import Cardano.Wallet.Address.Derivation
( Depth (..) )
import Cardano.Wallet.Checkpoints
( DeltaCheckpoints (..) )
import Cardano.Wallet.DB.Arbitrary
Expand Down Expand Up @@ -77,6 +75,8 @@ import Test.QuickCheck.Monadic
import UnliftIO.Exception
( impureThrow )

import Cardano.Address.Derivation
( XPrv )
import qualified Data.Map.Strict as Map

spec :: Spec
Expand All @@ -92,12 +92,13 @@ spec = do
prop_StoreWallet
:: forall s
. ( PersistAddressBook s
, GenState s
, GenState s, Eq (KeyOf s 'RootK XPrv)
)
=> SqliteContext
=> WalletFlavorS s
-> SqliteContext
-> (WalletId, InitialCheckpoint s)
-> Property
prop_StoreWallet db (wid, InitialCheckpoint cp0) =
prop_StoreWallet wF db (wid, InitialCheckpoint cp0) =
monadicIO (setup >> prop)
where
toIO = runQuery db
Expand All @@ -111,7 +112,7 @@ prop_StoreWallet db (wid, InitialCheckpoint cp0) =
prop = do
prop_StoreUpdates
toIO
(mkStoreWallet wid)
(mkStoreWallet wF wid)
genState
genDeltaWalletState

Expand Down

0 comments on commit 1ccc89c

Please sign in to comment.