add warning for old wallets
This commit is contained in:
parent
b03a3f1391
commit
dd0dc9c6ad
4 changed files with 56 additions and 7 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue