process code - parse information to import wallet

This commit is contained in:
Javier 2016-06-28 15:34:10 -03:00
commit 6aa075326e
5 changed files with 131 additions and 107 deletions

View file

@ -10,6 +10,7 @@ angular.module('copayApp.controllers').controller('exportController',
$scope.isCordova = platformInfo.isCordova;
$scope.isSafari = platformInfo.isSafari;
$scope.error = null;
console.log(fc.credentials);
$scope.init = function(state) {
$scope.QROpts = false;
@ -64,7 +65,7 @@ angular.module('copayApp.controllers').controller('exportController',
if (c.mnemonic) {
info = {
type: encodingType.mnemonic,
data: c.mnemonic
data: c.mnemonic,
}
} else {
info = {
@ -79,7 +80,8 @@ angular.module('copayApp.controllers').controller('exportController',
}
}
var code = info.type + c.network.charAt(0).toLowerCase() + info.data;
var code = info.type + '|' + c.network.charAt(0).toLowerCase() + '|' + info.data + '|' + c.account + '|' + c.derivationStrategy +
'|' + (c.mnemonicHasPassphrase || null);
return code;
};