Merge pull request #4736 from JDonadio/bug/import-old-wallets

Check for older backup version
This commit is contained in:
Matias Alejo Garcia 2016-09-07 10:31:09 -03:00 committed by GitHub
commit 004ae9f17a
1 changed files with 4 additions and 0 deletions

View File

@ -572,6 +572,10 @@ angular.module('copayApp.services')
str = JSON.parse(str);
if (!str.n) {
return cb("Backup format not recognized. If you are using a Copay Beta backup and version is older than 0.10, please see: https://github.com/bitpay/copay/issues/4730#issuecomment-244522614");
}
var addressBook = str.addressBook || {};
root.addAndBindWalletClient(walletClient, {