Wizard: allow seed without checksum

This commit is contained in:
stoffu 2018-02-25 21:52:04 +09:00
parent 084c1c84f3
commit 70d42ee328
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ ColumnLayout {
function checkSeed() { function checkSeed() {
console.log("Checking seed") console.log("Checking seed")
var wordsArray = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText).split(" "); var wordsArray = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText).split(" ");
return wordsArray.length === 25 return wordsArray.length === 25 || wordsArray.length === 24
} }
function updateFromQrCode(address, payment_id, amount, tx_description, recipient_name, extra_parameters) { function updateFromQrCode(address, payment_id, amount, tx_description, recipient_name, extra_parameters) {

View File

@ -41,7 +41,7 @@ Column {
font.pixelSize: 16 * scaleRatio font.pixelSize: 16 * scaleRatio
anchors.margins: 8 * scaleRatio anchors.margins: 8 * scaleRatio
font.bold:true font.bold:true
text: qsTr("Enter your 25 word mnemonic seed") + translationManager.emptyString text: qsTr("Enter your 25 (or 24) word mnemonic seed") + translationManager.emptyString
color: "#BABABA" color: "#BABABA"
visible: !memoTextInput.text/* && !parent.focus*/ visible: !memoTextInput.text/* && !parent.focus*/
} }