We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 563da59 commit 411ebbeCopy full SHA for 411ebbe
js/models/core/Wallet.js
@@ -1625,9 +1625,11 @@ Wallet.prototype.updateIndex = function(index, callback) {
1625
});
1626
}
1627
1628
-Wallet.prototype.deriveAddresses = function(index, amout, isChange, cosigner) {
1629
- var ret = new Array(amout);
1630
- for (var i = 0; i < amout; i++) {
+Wallet.prototype.deriveAddresses = function(index, amount, isChange, cosigner) {
+ preconditions.checkArgument(cosigner);
+
1631
+ var ret = new Array(amount);
1632
+ for (var i = 0; i < amount; i++) {
1633
ret[i] = this.publicKeyRing.getAddress(index + i, isChange, cosigner).toString();
1634
1635
return ret;
0 commit comments