Skip to content

Commit 411ebbe

Browse files
committed
fix type
1 parent 563da59 commit 411ebbe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

js/models/core/Wallet.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,9 +1625,11 @@ Wallet.prototype.updateIndex = function(index, callback) {
16251625
});
16261626
}
16271627

1628-
Wallet.prototype.deriveAddresses = function(index, amout, isChange, cosigner) {
1629-
var ret = new Array(amout);
1630-
for (var i = 0; i < amout; i++) {
1628+
Wallet.prototype.deriveAddresses = function(index, amount, isChange, cosigner) {
1629+
preconditions.checkArgument(cosigner);
1630+
1631+
var ret = new Array(amount);
1632+
for (var i = 0; i < amount; i++) {
16311633
ret[i] = this.publicKeyRing.getAddress(index + i, isChange, cosigner).toString();
16321634
}
16331635
return ret;

0 commit comments

Comments
 (0)