fix import from xPriv (#4192)

This commit is contained in:
Matias Alejo Garcia 2016-05-09 12:03:25 -03:00 committed by Gustavo Maximiliano Cortez
commit 88ac00afcc
3 changed files with 20 additions and 14 deletions

View file

@ -16,6 +16,13 @@ angular.module('copayApp.services').factory('derivationPathHelper', function(lod
case "44'":
ret.derivationStrategy = 'BIP44';
break;
case "45'":
return {
derivationStrategy: 'BIP45',
networkName: 'livenet',
account: 0,
}
break;
case "48'":
ret.derivationStrategy = 'BIP48';
break;
@ -37,7 +44,7 @@ angular.module('copayApp.services').factory('derivationPathHelper', function(lod
var match = arr[3].match(/(\d+)'/);
if (!match)
return false;
ret.account = + match[1]
ret.account = +match[1]
return ret;
};