File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Sources/Web3Core/KeystoreManager Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ public class BIP32Keystore: AbstractKeystore {
137
137
}
138
138
139
139
func createNewAccount( parentNode: HDNode , password: String = " web3swift " ) throws {
140
-
141
140
let maxIndex = addressStorage. paths
142
141
. compactMap { $0. components ( separatedBy: " / " ) . last }
143
142
. compactMap { UInt32 ( $0) }
@@ -167,7 +166,7 @@ public class BIP32Keystore: AbstractKeystore {
167
166
}
168
167
169
168
public func createNewCustomChildAccount( password: String , path: String ) throws {
170
- guard let decryptedRootNode = try ? getPrefixNodeData ( password) else {
169
+ guard let decryptedRootNode = try getPrefixNodeData ( password) else {
171
170
throw AbstractKeystoreError . encryptionError ( " Failed to decrypt a keystore " )
172
171
}
173
172
guard let rootNode = HDNode ( decryptedRootNode) else {
You can’t perform that action at this time.
0 commit comments