New order of address: unshift instead push. Revert order of array of address.
This commit is contained in:
parent
872cfaba68
commit
278ac28ab2
1 changed files with 2 additions and 2 deletions
|
|
@ -214,12 +214,12 @@ PublicKeyRing.prototype.getAddresses = function(onlyMain) {
|
|||
var ret = [];
|
||||
|
||||
for (var i=0; i<this.addressIndex; i++) {
|
||||
ret.push(this.getAddress(i,false));
|
||||
ret.unshift(this.getAddress(i,false));
|
||||
}
|
||||
|
||||
if (!onlyMain) {
|
||||
for (var i=0; i<this.changeAddressIndex; i++) {
|
||||
ret.push(this.getAddress(i,true));
|
||||
ret.unshift(this.getAddress(i,true));
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue