fix type
This commit is contained in:
parent
563da59e60
commit
411ebbe2d7
1 changed files with 5 additions and 3 deletions
|
|
@ -1625,9 +1625,11 @@ Wallet.prototype.updateIndex = function(index, callback) {
|
|||
});
|
||||
}
|
||||
|
||||
Wallet.prototype.deriveAddresses = function(index, amout, isChange, cosigner) {
|
||||
var ret = new Array(amout);
|
||||
for (var i = 0; i < amout; i++) {
|
||||
Wallet.prototype.deriveAddresses = function(index, amount, isChange, cosigner) {
|
||||
preconditions.checkArgument(cosigner);
|
||||
|
||||
var ret = new Array(amount);
|
||||
for (var i = 0; i < amount; i++) {
|
||||
ret[i] = this.publicKeyRing.getAddress(index + i, isChange, cosigner).toString();
|
||||
}
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue