mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
GetLedger by hash option (#980)
* update ledger input schema * include ledgerHash option
This commit is contained in:
committed by
Elliot Lee
parent
8d37da0952
commit
5419e67dbc
@@ -3090,6 +3090,11 @@ describe('RippleAPI', function () {
|
||||
_.partial(checkResult, responses.getLedger.header, 'getLedger'));
|
||||
});
|
||||
|
||||
it('getLedger - by hash', function () {
|
||||
return this.api.getLedger({ ledgerHash: '15F20E5FA6EA9770BBFFDBD62787400960B04BE32803B20C41F117F41C13830D' }).then(
|
||||
_.partial(checkResult, responses.getLedger.headerByHash, 'getLedger'));
|
||||
});
|
||||
|
||||
it('getLedger - future ledger version', function () {
|
||||
return this.api.getLedger({ ledgerVersion: 14661789 }).then(response => {
|
||||
assert(response)
|
||||
|
||||
Reference in New Issue
Block a user