Skip to content

Commit

Permalink
minor style adjustments (indentation & code formatting)
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ authored and Anviking committed Jun 12, 2019
1 parent d4f5b3c commit d2b14fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions lib/core/src/Cardano/Wallet/DB/Sqlite.hs
Expand Up @@ -654,10 +654,12 @@ selectUTxO (Checkpoint wid sl _parent) = fmap entityVal <$>
selectPending
:: Checkpoint
-> SqlPersistM [TxId]
selectPending (Checkpoint wid sl _parent) = fmap (pendingTxTableId2 . entityVal)
<$>
selectList [ PendingTxTableWalletId ==. wid
, PendingTxTableCheckpointSlot ==. sl ] []
selectPending (Checkpoint wid sl _parent) =
fmap (pendingTxTableId2 . entityVal)
<$> selectList
[ PendingTxTableWalletId ==. wid
, PendingTxTableCheckpointSlot ==. sl
] []

selectTxs
:: [TxId]
Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/Cardano/Wallet/DB/Sqlite/TH.hs
Expand Up @@ -122,7 +122,7 @@ TxOut
Checkpoint
checkpointTableWalletId W.WalletId sql=wallet_id
checkpointTableSlot W.SlotId sql=slot
checkpointTableParent BlockId sql=parent
checkpointTableParent BlockId sql=parent

Primary checkpointTableWalletId checkpointTableSlot
Foreign Wallet fk_wallet_checkpoint checkpointTableWalletId
Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/Cardano/Wallet/Primitive/Types.hs
Expand Up @@ -771,7 +771,7 @@ instance FromText (Hash "BlockHeader") where
\expected Base16 encoding"

instance ToText (Hash "BlockHeader") where
toText = T.decodeUtf8 . convertToBase Base16 . getHash
toText = T.decodeUtf8 . convertToBase Base16 . getHash

-- | A polymorphic wrapper type with a custom show instance to display data
-- through 'Buildable' instances.
Expand Down

0 comments on commit d2b14fa

Please sign in to comment.