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 b515690 commit e23a33eCopy full SHA for e23a33e
Sources/Web3Core/KeystoreManager/BIP39.swift
@@ -183,7 +183,7 @@ public class BIP39 {
183
}
184
185
public static func seedFromMmemonics(_ mnemonics: String, password: String = "", language: BIP39Language = .english) -> Data? {
186
- if mnemonicsToEntropy(mnemonics, language: language) == nil {
+ guard mnemonicsToEntropy(mnemonics, language: language) != nil else {
187
return nil
188
189
return dataFrom(mnemonics: mnemonics, password: password)
0 commit comments