From 62def1c0b4e207a688bfa0dd501565f85fd218fa Mon Sep 17 00:00:00 2001 From: Paolo Veronelli Date: Tue, 24 May 2022 14:10:46 +0200 Subject: [PATCH] Minor fixes --- .../src/Test/Integration/Framework/DSL.hs | 1 - .../src/Test/Integration/Scenario/API/Shelley/Wallets.hs | 8 ++++---- lib/core/cardano-wallet-core.cabal | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/core-integration/src/Test/Integration/Framework/DSL.hs b/lib/core-integration/src/Test/Integration/Framework/DSL.hs index 2806ad6d0b0..f1febf3ea9a 100644 --- a/lib/core-integration/src/Test/Integration/Framework/DSL.hs +++ b/lib/core-integration/src/Test/Integration/Framework/DSL.hs @@ -2843,7 +2843,6 @@ updateWalletPassphraseWithMnemonicViaCLI ctx wid mnemonic ppNew ppNewConfirm = d hPutStr stdin (T.unpack (T.unwords mnemonic) <> "\n\n") hPutStr stdin (ppNew <> "\n") hPutStr stdin (ppNewConfirm <> "\n") - hFlush stdin hClose stdin c <- waitForProcess h out <- TIO.hGetContents stdout diff --git a/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Wallets.hs b/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Wallets.hs index a8e84070ead..93caa4cfcf4 100644 --- a/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Wallets.hs +++ b/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Wallets.hs @@ -772,7 +772,7 @@ spec = describe "SHELLEY_WALLETS" $ do it "WALLETS_UPDATE_PASS_01b - passphraseLastUpdate gets updated, mnemonic" $ \ctx -> runResourceT $ do - (w,mnemonic) <- emptyWalletAndMnemonic ctx + (w, mnemonic) <- emptyWalletAndMnemonic ctx let payload = updatePassPayloadMnemonic mnemonic "New passphrase" let endpoint = "v2/wallets" (w ^. walletId) ("passphrase" :: Text) @@ -786,7 +786,7 @@ spec = describe "SHELLEY_WALLETS" $ do it "WALLETS_UPDATE_PASS_01c - passphraseLastUpdate gets updated, mnemonic \ \using second factor" $ \ctx -> runResourceT $ do - (w,mnemonic, sndFactor) <- emptyWalletAndMnemonicAndSndFactor ctx + (w, mnemonic, sndFactor) <- emptyWalletAndMnemonicAndSndFactor ctx let payload = updatePassPayloadMnemonicAndSndFactor mnemonic sndFactor "New passphrase" let endpoint = "v2/wallets" (w ^. walletId) @@ -835,7 +835,7 @@ spec = describe "SHELLEY_WALLETS" $ do rup <- request @ApiWallet ctx ("PUT", endpoint) Default payload verify rup expectations forM_ matrix $ \(title, passphrase, expectations) -> it title $ \ctx -> runResourceT $ do - (w,mnemonic) <- emptyWalletAndMnemonic ctx + (w, mnemonic) <- emptyWalletAndMnemonic ctx let payload = updatePassPayloadMnemonic mnemonic passphrase let endpoint = "v2/wallets" (w ^. walletId) ("passphrase" :: Text) @@ -908,7 +908,7 @@ spec = describe "SHELLEY_WALLETS" $ do it "WALLETS_UPDATE_PASS_04 - Deleted wallet is not available, mnemonic" $ \ctx -> runResourceT $ do - (w,mnemonic) <- emptyWalletAndMnemonic ctx + (w, mnemonic) <- emptyWalletAndMnemonic ctx let payload = updatePassPayloadMnemonic mnemonic "Secure passphrase2" let walId = w ^. walletId let delEndp = "v2/wallets" walId diff --git a/lib/core/cardano-wallet-core.cabal b/lib/core/cardano-wallet-core.cabal index 9dfcd8cd7a3..ca2bc983eec 100644 --- a/lib/core/cardano-wallet-core.cabal +++ b/lib/core/cardano-wallet-core.cabal @@ -57,7 +57,6 @@ library , cardano-ledger-shelley-test , cardano-ledger-shelley , cardano-ledger-alonzo - , cardano-prelude , cardano-slotting , cborg , containers