Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[CBR-398] Taking account for nonempty spendingpassword if randomWalle…
Browse files Browse the repository at this point in the history
…t ever use it in the future
  • Loading branch information
paweljakubas committed Aug 31, 2018
1 parent 8ef02d4 commit 27cd8e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wallet-new/integration/AccountSpecs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ accountSpecs wRef wc =
forM_ tests $ \PaginationTest{..} -> do
eresp <- getAccountAddresses wc walId accIndex page perPage filters
expectations . acaAddresses . wrData =<< eresp `shouldPrism` _Right
it "can retrieve initial and updated balances of several account from getAccountBalances that are equivalent to what is obtained from getAccount" $ do
it "can retrieve initial and updated balances of several accounts from getAccountBalances that are equivalent to what is obtained from getAccounts" $ do
genesis <- genesisWallet wc
(fromAcct, _) <- firstAccountAndId wc genesis

Expand Down Expand Up @@ -99,6 +99,7 @@ accountSpecs wRef wc =
map (AccountBalance . accAmount) accsUpdated `shouldBe` balancesPartialUpdated



it "redeeming avvv key gives rise to the corresponding increase of balance of wallet'account - mnemonic not used" $ do

newWallet <- randomWallet CreateWallet
Expand All @@ -121,7 +122,9 @@ accountSpecs wRef wc =
let redemption = Redemption
{ redemptionRedemptionCode = ShieldedRedemptionCode avvmKey
, redemptionMnemonic = Nothing
, redemptionSpendingPassword = passPhrase
, redemptionSpendingPassword = case newwalSpendingPassword newWallet of
Just spPassw -> spPassw
Nothing -> passPhrase
, redemptionWalletId = walId
, redemptionAccountIndex = accIndex newAcct
}
Expand Down

0 comments on commit 27cd8e8

Please sign in to comment.