Removes importLegacy. Enable Coinbase/Glidera for livenet. Fix undefined variable on buyCoinbase/Glidera

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-12 16:42:32 -03:00
commit 3776062e16
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
6 changed files with 4 additions and 177 deletions

View file

@ -650,23 +650,6 @@ angular.module('copayApp.services')
});
};
root.importLegacyWallet = function(username, password, blob, cb) {
var walletClient = bwcService.getClient();
walletClient.createWalletFromOldCopay(username, password, blob, function(err, existed) {
if (err) return cb(gettext('Error importing wallet: ') + err);
if (root.profile.hasWallet(walletClient.credentials.walletId)) {
$log.debug('Wallet:' + walletClient.credentials.walletName + ' already imported');
return cb(gettext('Wallet Already Imported: ') + walletClient.credentials.walletName);
};
root.addAndBindWalletClient(walletClient, {
isImport: true
}, cb);
});
};
root.updateCredentials = function(credentials, cb) {
root.profile.updateWallet(credentials);
storageService.storeProfileThrottled(root.profile, cb);