Bug/select wallet incomplete / Refactor wallet Services (#4159)

* Addressbook: display error if select an incomplete wallet

* Check if wallet is complete/needs_backup for Glidera and Coinbase

* Ref/create a walletService

* Ref. walletService

* Fix Glidera and Coinbase

* Removes txService

* Fix glidera connection for mobile. Fix bitcode for xcode

* Fix duplicated entry

* Revert "Bump bwc version 2.3.1"

* adds karma-mocha

* Refactor

* Refactor lock function

* Refactor reject, remove and broadcast tx

* add walletService tests WIP

* add walletService tests WIP 2

* merge

* update tests to mocha

* fix tests. Angular 1.5?

* Fix test

* Generate angular-bwc before testing

* Rever gitignore

* Wording
This commit is contained in:
Gustavo Maximiliano Cortez 2016-05-09 15:56:44 -03:00
commit 98471e952a
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
27 changed files with 698 additions and 628 deletions

View file

@ -127,6 +127,18 @@ angular.module('copayApp.services')
case 'WALLET_NOT_COMPLETE':
body = gettextCatalog.getString('Wallet is not complete');
break;
case 'WALLET_NEEDS_BACKUP':
body = gettextCatalog.getString('Wallet needs backup');
break;
case 'MISSING_PARAMETER':
body = gettextCatalog.getString('Missing parameter');
break;
case 'NO_PASSWORD_GIVEN':
body = gettextCatalog.getString('Spending Password needed');
break;
case 'PASSWORD_INCORRECT':
body = gettextCatalog.getString('Wrong spending password');
break;
case 'ERROR':
body = (err.message || err.error);
break;
@ -147,7 +159,7 @@ angular.module('copayApp.services')
};
root.cb = function(err, prefix, cb) {
return cb(root.msg(err, prefix))
return cb(root.msg(err, prefix));
};
return root;