add warning for old wallets

This commit is contained in:
Matias Alejo Garcia 2014-10-11 14:33:45 -03:00
commit dd0dc9c6ad
4 changed files with 56 additions and 7 deletions

View file

@ -105,13 +105,22 @@ Identity._getStorage = function(opts, password) {
* @param opts.storageOpts
* @param cb
*/
Identity.anyProfile = function(opts, cb) {
var storage = Identity._getStorage(opts);
Profile.any(storage,cb);
};
/**
* check if any wallet exists on storage
*
* @param opts.storageOpts
* @param cb
*/
Identity.anyWallet = function(opts, cb) {
var storage = Identity._getStorage(opts);
Wallet.any(storage,cb);
};
/**
* creates and Identity
*