This commit is contained in:
Matias Alejo Garcia 2014-10-27 15:00:08 -03:00
commit 25ba346489

View file

@ -143,7 +143,6 @@ Identity.open = function(opts, cb) {
* @param {Function} cb * @param {Function} cb
*/ */
Identity.createFromPartialJson = function(jsonString, opts, callback) { Identity.createFromPartialJson = function(jsonString, opts, callback) {
var self = this;
var exported; var exported;
try { try {
exported = JSON.parse(jsonString); exported = JSON.parse(jsonString);
@ -155,7 +154,7 @@ Identity.createFromPartialJson = function(jsonString, opts, callback) {
identity.retrieveWalletFromStorage(walletId, {}, function(error, wallet) { identity.retrieveWalletFromStorage(walletId, {}, function(error, wallet) {
if (!error) { if (!error) {
identity.wallets[wallet.getId()] = wallet; identity.wallets[wallet.getId()] = wallet;
self.bindWallet(w); identity.bindWallet(wallet);
wallet.netStart(); wallet.netStart();
} }
callback(error, wallet); callback(error, wallet);