Fix mnemonic interpretation bug
This commit is contained in:
parent
ea43d68c72
commit
a8cf657c63
|
@ -268,7 +268,7 @@ private final class RecoveryPhraseVC : UIViewController {
|
||||||
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
|
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
|
||||||
presentAlert(alert)
|
presentAlert(alert)
|
||||||
}
|
}
|
||||||
let mnemonic = mnemonicTextView.text!
|
let mnemonic = mnemonicTextView.text!.lowercased()
|
||||||
do {
|
do {
|
||||||
let hexEncodedSeed = try Mnemonic.decode(mnemonic: mnemonic)
|
let hexEncodedSeed = try Mnemonic.decode(mnemonic: mnemonic)
|
||||||
let seed = Data(hex: hexEncodedSeed)
|
let seed = Data(hex: hexEncodedSeed)
|
||||||
|
|
|
@ -160,7 +160,7 @@ final class RestoreVC : BaseVC {
|
||||||
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
|
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
|
||||||
presentAlert(alert)
|
presentAlert(alert)
|
||||||
}
|
}
|
||||||
let mnemonic = mnemonicTextView.text!
|
let mnemonic = mnemonicTextView.text!.lowercased()
|
||||||
do {
|
do {
|
||||||
let hexEncodedSeed = try Mnemonic.decode(mnemonic: mnemonic)
|
let hexEncodedSeed = try Mnemonic.decode(mnemonic: mnemonic)
|
||||||
let seed = Data(hex: hexEncodedSeed)
|
let seed = Data(hex: hexEncodedSeed)
|
||||||
|
|
Loading…
Reference in New Issue