We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30bd0e commit d76e6eeCopy full SHA for d76e6ee
Sources/Web3Core/KeystoreManager/BIP32Keystore.swift
@@ -155,13 +155,7 @@ public class BIP32Keystore: AbstractKeystore {
155
guard let newAddress = Utilities.publicToAddress(newNode.publicKey) else {
156
throw AbstractKeystoreError.keyDerivationError
157
}
158
- let prefixPath = self.rootPrefix
159
- var newPath: String
160
- if newNode.isHardened {
161
- newPath = prefixPath + "/" + String(newNode.index % HDNode.hardenedIndexPrefix) + "'"
162
- } else {
163
- newPath = prefixPath + "/" + String(newNode.index)
164
- }
+ let newPath = rootPrefix + "/" + String(newNode.index)
165
addressStorage.add(address: newAddress, for: newPath)
166
167
0 commit comments