do not store lang.

This commit is contained in:
Christopher Jeffrey 2016-04-29 06:11:54 -07:00
parent c4b807a5a0
commit f6b42ae5f3
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -853,7 +853,6 @@ HDPrivateKey.prototype.toJSON = function toJSON(passphrase) {
json.passphrase = passphrase
? utils.encrypt(this.mnemonic.passphrase, passphrase)
: this.mnemonic.passphrase;
json.lang = this.mnemonic.lang;
}
json.xprivkey = passphrase
? utils.encrypt(this.xprivkey, passphrase)
@ -888,8 +887,7 @@ HDPrivateKey.parseJSON = function parseJSON(json, passphrase) {
: json.phrase,
passphrase: json.encrypted
? utils.decrypt(json.passphrase, passphrase)
: json.passphrase,
lang: json.lang
: json.passphrase
};
if (!json.xprivkey)
return data;