Fix mnemonic interpretation bug

pull/364/head
Niels Andriesse 3 years ago
parent ea43d68c72
commit a8cf657c63

@ -268,7 +268,7 @@ private final class RecoveryPhraseVC : UIViewController {
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
presentAlert(alert)
}
let mnemonic = mnemonicTextView.text!
let mnemonic = mnemonicTextView.text!.lowercased()
do {
let hexEncodedSeed = try Mnemonic.decode(mnemonic: mnemonic)
let seed = Data(hex: hexEncodedSeed)

@ -160,7 +160,7 @@ final class RestoreVC : BaseVC {
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
presentAlert(alert)
}
let mnemonic = mnemonicTextView.text!
let mnemonic = mnemonicTextView.text!.lowercased()
do {
let hexEncodedSeed = try Mnemonic.decode(mnemonic: mnemonic)
let seed = Data(hex: hexEncodedSeed)

Loading…
Cancel
Save