Skip to content

Commit

Permalink
Merge pull request #54 from Adamant-im/ethBugFix
Browse files Browse the repository at this point in the history
fix eth wallet path
  • Loading branch information
RealBonus authored Oct 30, 2018
2 parents ff64d11 + ce4de25 commit b90c333
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Adamant/Wallets/Ethereum/EthWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b90c333

Please sign in to comment.