Skip to content

Commit b408b87

Browse files
committed
Fix validate mnemonic
1 parent f46465b commit b408b87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Bitkit/Services/MigrationsService.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,9 @@ extension MigrationsService {
448448
throw AppError(message: "Invalid mnemonic: \(words.count) words", debugMessage: nil)
449449
}
450450

451-
guard BitkitCore.validateMnemonic(mnemonic) else {
451+
do {
452+
try validateMnemonic(mnemonicPhrase: mnemonic)
453+
} catch {
452454
throw AppError(message: "Invalid BIP39 mnemonic", debugMessage: nil)
453455
}
454456

0 commit comments

Comments
 (0)