From 9b182d556a3b6f9017b3453c49b9f456d8e69102 Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Mon, 8 Nov 2021 19:33:49 +0300 Subject: [PATCH] FIX: import custom derivation path with passphrase --- screen/wallets/importCustomDerivationPath.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screen/wallets/importCustomDerivationPath.js b/screen/wallets/importCustomDerivationPath.js index 17066fa43..62404d282 100644 --- a/screen/wallets/importCustomDerivationPath.js +++ b/screen/wallets/importCustomDerivationPath.js @@ -21,7 +21,7 @@ const ImportCustomDerivationPath = () => { const { colors } = useTheme(); const route = useRoute(); const importText = route.params.importText; - const passphrase = route.params.passphrase; + const password = route.params.password; const { addAndSaveWallet } = useContext(BlueStorageContext); const [path, setPath] = useState("m/84'/0'/0'"); const [wallets, setWallets] = useState({}); @@ -41,7 +41,7 @@ const ImportCustomDerivationPath = () => { for (const Wallet of [HDLegacyP2PKHWallet, HDSegwitP2SHWallet, HDSegwitBech32Wallet]) { const wallet = new Wallet(); wallet.setSecret(importText); - wallet.setPassphrase(passphrase); + wallet.setPassphrase(password); wallet.setDerivationPath(path); wallets[Wallet.type] = wallet; }