fix derivation index
This commit is contained in:
parent
4d9a477ae5
commit
b712874c17
5 changed files with 7 additions and 7 deletions
|
|
@ -139,13 +139,13 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
this.error = null;
|
||||
|
||||
if (!words) {
|
||||
this.error = gettext('Please enter the backup words');
|
||||
this.error = gettext('Please enter the seed words');
|
||||
} else {
|
||||
var wordList = words.split(/ /).filter(function(v) {
|
||||
return v.length > 0;
|
||||
});
|
||||
if (wordList.length != 12)
|
||||
this.error = gettext('Please enter 12 backup words');
|
||||
if ((wordList.length % 3) != 0)
|
||||
this.error = gettext('Wrong number of seed words:') + wordList.length;
|
||||
else
|
||||
words = wordList.join(' ');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ angular.module('copayApp.services')
|
|||
}
|
||||
|
||||
root._getPath = function(index) {
|
||||
return bwcService.getUtils().PATHS.BASE_ADDRESS_DERIVATION + "/" + index;
|
||||
return "m/" + index + "'/45'";
|
||||
}
|
||||
|
||||
root._splitTransaction = function(transaction) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue