fix import from xPriv (#4192)
This commit is contained in:
parent
b0db8f4eeb
commit
88ac00afcc
3 changed files with 20 additions and 14 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue