Address History: Add getAddressHistoryCount to available API methods.
This commit is contained in:
parent
b1b40c892e
commit
e7587564a7
@ -48,7 +48,8 @@ AddressService.prototype.getAPIMethods = function() {
|
|||||||
['getOutputs', this, this.getOutputs, 2],
|
['getOutputs', this, this.getOutputs, 2],
|
||||||
['getUnspentOutputs', this, this.getUnspentOutputs, 2],
|
['getUnspentOutputs', this, this.getUnspentOutputs, 2],
|
||||||
['isSpent', this, this.isSpent, 2],
|
['isSpent', this, this.isSpent, 2],
|
||||||
['getAddressHistory', this, this.getAddressHistory, 2]
|
['getAddressHistory', this, this.getAddressHistory, 2],
|
||||||
|
['getAddressHistoryCount', this, this.getAddressHistoryCount, 2]
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ describe('Address Service', function() {
|
|||||||
it('should return the correct methods', function() {
|
it('should return the correct methods', function() {
|
||||||
var am = new AddressService({node: mocknode});
|
var am = new AddressService({node: mocknode});
|
||||||
var methods = am.getAPIMethods();
|
var methods = am.getAPIMethods();
|
||||||
methods.length.should.equal(5);
|
methods.length.should.equal(6);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user