fix only derivation path in advanced information

This commit is contained in:
Javier 2015-09-29 13:33:27 -03:00
parent 504a8b10dd
commit 3721b2e20c
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
var fc = profileService.focusedClient;
var c = fc.credentials;
var basePath = 'xpub'
$scope.walletName = c.walletName;
$scope.walletId = c.walletId;
@ -27,6 +28,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
i = 0,
e = addrs.pop();
while (i++ < 10 && e) {
e.path = basePath + e.path.substring(1);
last10.push(e);
e = addrs.pop();
}
@ -62,7 +64,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
var body = 'Copay Wallet' + fc.walletName + ' Addresses\n Only Main Addresses are shown.\n\n';
body += '\n\n';
body += addrs.map(function(v) {
return addrs.address, addrs.path, formatDate(addrs.createdOn);
return addrs.address, basePath + addrs.path.substring(1), formatDate(addrs.createdOn);
}).join('\n');
var properties = {