fixes when deleting wallets

This commit is contained in:
Matias Alejo Garcia 2014-12-02 16:53:24 -03:00
commit 394a5b474a
4 changed files with 29 additions and 11 deletions

View file

@ -645,7 +645,7 @@ Identity.prototype.deleteWallet = function(walletId, cb) {
this.storage.removeItem(Wallet.getStorageKey(walletId), function(err) {
if (err) return cb(err);
self.emitAndKeepAlive('deletedWallet', walletId);
self.emitAndKeepAlive('walletDeleted', walletId);
self.store(null, cb);
return cb();
});