From ce4de25cb8a0519c6ff9d7951d0c08ad1095a67a Mon Sep 17 00:00:00 2001 From: Anton B Date: Tue, 30 Oct 2018 16:01:00 +0300 Subject: [PATCH] fix eth wallet path Sync eth wallet path with PWA --- Adamant/Wallets/Ethereum/EthWalletService.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Adamant/Wallets/Ethereum/EthWalletService.swift b/Adamant/Wallets/Ethereum/EthWalletService.swift index d7ddc603c..7bb6731df 100644 --- a/Adamant/Wallets/Ethereum/EthWalletService.swift +++ b/Adamant/Wallets/Ethereum/EthWalletService.swift @@ -51,6 +51,8 @@ class EthWalletService: WalletService { static let transferGas: Decimal = 21000 static let defaultGasPrice = 20000000000 // 20 Gwei static let kvsAddress = "eth:address" + + static let walletPath = "m/44'/60'/3'/1" // MARK: - Dependencies @@ -244,7 +246,7 @@ extension EthWalletService: InitiatedWithPassphraseService { // MARK: 2. Create keys and addresses let keystore: BIP32Keystore do { - guard let store = try BIP32Keystore(mnemonics: passphrase, password: "", mnemonicsPassword: "", language: .english) else { + guard let store = try BIP32Keystore(mnemonics: passphrase, password: "", mnemonicsPassword: "", language: .english, prefixPath: EthWalletService.walletPath) else { completion(.failure(error: .internalError(message: "ETH Wallet: failed to create Keystore", error: nil))) stateSemaphore.signal() return