|
@ -128,7 +128,7 @@ WalletService.prototype.createWallet = function(opts, cb) { |
|
|
return acb(); |
|
|
return acb(); |
|
|
|
|
|
|
|
|
self.storage.fetchWallet(opts.id, function(err, wallet) { |
|
|
self.storage.fetchWallet(opts.id, function(err, wallet) { |
|
|
if (wallet) return acb(new ClientError('Wallet already exists')); |
|
|
if (wallet) return acb(new ClientError('WEXISTS', 'Wallet already exists')); |
|
|
return acb(err); |
|
|
return acb(err); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|