add AddressIndex model
This commit is contained in:
parent
88df346c51
commit
51d5d7164e
8 changed files with 104 additions and 16 deletions
|
|
@ -82,6 +82,9 @@ PrivateKey.prototype.get = function(index,isChange) {
|
|||
};
|
||||
|
||||
PrivateKey.prototype.getAll = function(receiveIndex, changeIndex) {
|
||||
if (typeof receiveIndex === 'undefined' || typeof changeIndex === 'undefined')
|
||||
throw new Error('Invalid parameters');
|
||||
|
||||
var ret = [];
|
||||
for(var i=0;i<receiveIndex; i++) {
|
||||
ret.push(this.get(i,false));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue