fix preDerivation

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

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