bitcoin-api 0.12.0 → 0.12.1
raw patch · 2 files changed
+4/−4 lines, 2 files
Files
bitcoin-api.cabal view
@@ -1,6 +1,6 @@ name: bitcoin-api category: Network, Finance -version: 0.12.0 +version: 0.12.1 license: MIT license-file: LICENSE copyright: (c) 2015 Leon Mergen
src/Network/Bitcoin/Api/Wallet.hs view
@@ -46,9 +46,9 @@ -- | Returns the amount of Btc currently held in the wallet by a specified -- account. -getAccountBalance :: T.Client -- | Our client context - -> BT.Account -- | The account we're looking for - -> IO BT.Btc -- | Amount of Btc in wallet +getAccountBalance :: T.Client -- ^ Our client context + -> BT.Account -- ^ The account we're looking for + -> IO BT.Btc -- ^ Amount of Btc in wallet getAccountBalance client accountId = -- FIXME: we should use the native 'getbalance' function here return . snd . head . filter ((== accountId) . fst) =<< listAccounts client