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 1c412e3 commit f46465bCopy full SHA for f46465b
Bitkit/Services/MigrationsService.swift
@@ -448,6 +448,10 @@ extension MigrationsService {
448
throw AppError(message: "Invalid mnemonic: \(words.count) words", debugMessage: nil)
449
}
450
451
+ guard BitkitCore.validateMnemonic(mnemonic) else {
452
+ throw AppError(message: "Invalid BIP39 mnemonic", debugMessage: nil)
453
+ }
454
+
455
try Keychain.saveString(key: .bip39Mnemonic(index: walletIndex), str: mnemonic)
456
457
0 commit comments