mirror of https://github.com/BTCPrivate/copay.git
fix type
This commit is contained in:
parent
563da59e60
commit
411ebbe2d7
|
@ -1625,9 +1625,11 @@ Wallet.prototype.updateIndex = function(index, callback) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Wallet.prototype.deriveAddresses = function(index, amout, isChange, cosigner) {
|
Wallet.prototype.deriveAddresses = function(index, amount, isChange, cosigner) {
|
||||||
var ret = new Array(amout);
|
preconditions.checkArgument(cosigner);
|
||||||
for (var i = 0; i < amout; i++) {
|
|
||||||
|
var ret = new Array(amount);
|
||||||
|
for (var i = 0; i < amount; i++) {
|
||||||
ret[i] = this.publicKeyRing.getAddress(index + i, isChange, cosigner).toString();
|
ret[i] = this.publicKeyRing.getAddress(index + i, isChange, cosigner).toString();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue