mirror of https://github.com/BTCPrivate/copay.git
fix preDerivation
This commit is contained in:
parent
619e743af0
commit
c4964c1929
|
@ -100,7 +100,7 @@ angular.module('copayApp.services')
|
|||
|
||||
default:
|
||||
$log.warn('Unknown error type:', err.code);
|
||||
body = err.code + ':' + err.message ;
|
||||
body = err.message || err.code;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ angular.module('copayApp.services')
|
|||
var walletClient = bwcService.getClient();
|
||||
var network = opts.networkName || 'livenet';
|
||||
|
||||
if (opts.mnemonic && opts.mnemonic.indexOf('m/' != 0)) {
|
||||
if (opts.mnemonic && opts.mnemonic.indexOf('m/') == 0) {
|
||||
var xPrivKey = root._preDerivation(opts.mnemonic, network);
|
||||
if (!xPrivKey)
|
||||
return bwsError.cb('Bad derivation', gettext('Could not import'), cb);
|
||||
|
|
Loading…
Reference in New Issue