Trying to import a wallet with a wrong password
This commit is contained in:
parent
5c1935e04b
commit
039f0ed461
3 changed files with 8 additions and 8 deletions
|
|
@ -136,10 +136,7 @@ WalletFactory.prototype.fromEncryptedObj = function(base64, passphrase, skipFiel
|
|||
*/
|
||||
WalletFactory.prototype.import = function(base64, passphrase, skipFields) {
|
||||
var self = this;
|
||||
var w = self.fromEncryptedObj(base64, passphrase, skipFields);
|
||||
|
||||
if (!w) throw new Error('Wrong passphrase');
|
||||
return w;
|
||||
return self.fromEncryptedObj(base64, passphrase, skipFields);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue