Skip to content

Commit f30bd0e

Browse files
committed
- linter Trailing Whitespace Violation fixed
1 parent 12b781f commit f30bd0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Web3Core/KeystoreManager/BIP32Keystore.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public class BIP32Keystore: AbstractKeystore {
215215
guard let serializedRootNode = rootNode.serialize(serializePublic: false) else {throw AbstractKeystoreError.keyDerivationError}
216216
try encryptDataToStorage(password, data: serializedRootNode, aesMode: self.keystoreParams!.crypto.cipher)
217217
}
218-
218+
219219
/// Fast generation addresses for current account
220220
/// used for shows which address user will get when changed number of his wallet
221221
/// - Parameters:
@@ -231,7 +231,7 @@ public class BIP32Keystore: AbstractKeystore {
231231
}
232232
let prefixPath = self.rootPrefix
233233
var pathAppendix: String?
234-
234+
235235
return [Int](0..<number).compactMap({ number in
236236
pathAppendix = nil
237237
let path = prefixPath + "/\(number)"
@@ -242,7 +242,7 @@ public class BIP32Keystore: AbstractKeystore {
242242
} else {
243243
return nil
244244
}
245-
245+
246246
guard pathAppendix != nil else {
247247
return nil
248248
}
@@ -263,7 +263,7 @@ public class BIP32Keystore: AbstractKeystore {
263263
return newAddress
264264
})
265265
}
266-
266+
267267
fileprivate func encryptDataToStorage(_ password: String, data: Data, dkLen: Int = 32, N: Int = 4096, R: Int = 6, P: Int = 1, aesMode: String = "aes-128-cbc") throws {
268268
guard data.count == 82 else {
269269
throw AbstractKeystoreError.encryptionError("Invalid expected data length")

0 commit comments

Comments
 (0)