fix preDerivation

This commit is contained in:
Matias Alejo Garcia 2015-09-11 11:37:34 -03:00
parent 619e743af0
commit c4964c1929
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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);