File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
core-integration/src/Test/Integration/Scenario/API/Shelley
core/src/Cardano/Wallet/Api Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -164,11 +164,7 @@ spec = do
164164 verify r
165165 [ expectField (# balance . # getApiT . # reward) (.> (Quantity 0 ))
166166 ]
167- let Quantity totalBalance =
168- getFromResponse (# balance . # getApiT . # total) r
169- let Quantity rewardBalance =
170- getFromResponse (# balance . # getApiT . # reward) r
171- pure $ Quantity (totalBalance - rewardBalance)
167+ pure $ getFromResponse (# balance . # getApiT . # available) r
172168
173169 -- Use rewards
174170 addrs <- listAddresses @ n ctx w
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ mkShelleyWallet ctx wid cp meta pending progress = do
613613 pure ApiWallet
614614 { addressPoolGap = ApiT $ getState cp ^. # externalPool . # gap
615615 , balance = ApiT $ WalletBalance
616- { available = Quantity $ reward + availableBalance pending cp
616+ { available = Quantity $ availableBalance pending cp
617617 , total = Quantity $ reward + totalBalance pending cp
618618 , reward = Quantity reward
619619 }
Original file line number Diff line number Diff line change @@ -341,13 +341,13 @@ x-walletBalance: &walletBalance
341341 properties :
342342 available :
343343 << : *amount
344- description : Available balance (funds that can be spent)
344+ description : Available UTxO balance (funds that can be spent without condition).
345345 reward :
346346 << : *amount
347347 description : The balance of the reward account for this wallet.
348348 total :
349349 << : *amount
350- description : Total balance (available balance plus pending change)
350+ description : Total balance (available balance plus pending change and reward balance).
351351
352352x-byronWalletBalance : &byronWalletBalance
353353 description : Byron wallet's current balance(s)
You can’t perform that action at this time.
0 commit comments