mirror of https://github.com/BTCPrivate/copay.git
Fix indent
This commit is contained in:
parent
9bcf014694
commit
33171bb88d
|
@ -5,42 +5,42 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
||||||
var base = 'xpub';
|
var base = 'xpub';
|
||||||
|
|
||||||
this.init = function() {
|
this.init = function() {
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
var c = fc.credentials;
|
var c = fc.credentials;
|
||||||
var basePath = profileService.getUtils().getBaseAddressDerivationPath(c.derivationStrategy, c.network, 0);
|
var basePath = profileService.getUtils().getBaseAddressDerivationPath(c.derivationStrategy, c.network, 0);
|
||||||
|
|
||||||
$scope.walletName = c.walletName;
|
$scope.walletName = c.walletName;
|
||||||
$scope.walletId = c.walletId;
|
$scope.walletId = c.walletId;
|
||||||
$scope.network = c.network;
|
$scope.network = c.network;
|
||||||
$scope.addressType = c.addressType || 'P2SH';
|
$scope.addressType = c.addressType || 'P2SH';
|
||||||
$scope.derivationStrategy = c.derivationStrategy || 'BIP45';
|
$scope.derivationStrategy = c.derivationStrategy || 'BIP45';
|
||||||
$scope.basePath = basePath;
|
$scope.basePath = basePath;
|
||||||
$scope.M = c.m;
|
$scope.M = c.m;
|
||||||
$scope.N = c.n;
|
$scope.N = c.n;
|
||||||
$scope.pubKeys = lodash.pluck(c.publicKeyRing, 'xPubKey');
|
$scope.pubKeys = lodash.pluck(c.publicKeyRing, 'xPubKey');
|
||||||
$scope.addrs = null;
|
$scope.addrs = null;
|
||||||
|
|
||||||
fc.getMainAddresses({
|
fc.getMainAddresses({
|
||||||
doNotVerify: true
|
doNotVerify: true
|
||||||
}, function(err, addrs) {
|
}, function(err, addrs) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$log.warn(err);
|
$log.warn(err);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
var last10 = [],
|
var last10 = [],
|
||||||
i = 0,
|
i = 0,
|
||||||
e = addrs.pop();
|
e = addrs.pop();
|
||||||
while (i++ < 10 && e) {
|
while (i++ < 10 && e) {
|
||||||
e.path = base + e.path.substring(1);
|
e.path = base + e.path.substring(1);
|
||||||
last10.push(e);
|
last10.push(e);
|
||||||
e = addrs.pop();
|
e = addrs.pop();
|
||||||
}
|
}
|
||||||
$scope.addrs = last10;
|
$scope.addrs = last10;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sendAddrs = function() {
|
this.sendAddrs = function() {
|
||||||
|
|
Loading…
Reference in New Issue