Skip to content

Commit e587175

Browse files
committed
- isHardened check removed from createNewCustomChildAccount
1 parent dd32c16 commit e587175

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Sources/Web3Core/KeystoreManager/BIP32Keystore.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,7 @@ public class BIP32Keystore: AbstractKeystore {
192192
throw AbstractKeystoreError.keyDerivationError
193193
}
194194

195-
let newPath: String
196-
if newNode.isHardened {
197-
newPath = prefixPath + "/" + pathAppendix.trimmingCharacters(in: .init(charactersIn: "'")) + "'"
198-
} else {
199-
newPath = prefixPath + "/" + pathAppendix
200-
}
195+
let newPath = prefixPath + "/" + pathAppendix
201196

202197
addressStorage.add(address: newAddress, for: newPath)
203198
guard let serializedRootNode = rootNode.serialize(serializePublic: false) else {

0 commit comments

Comments
 (0)