process code - parse information to import wallet
This commit is contained in:
parent
45d44a927b
commit
6aa075326e
5 changed files with 131 additions and 107 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue