mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Add getLedgerHeader method
This commit is contained in:
@@ -554,6 +554,11 @@ describe('RippleAPI', function() {
|
||||
assert.strictEqual(this.api.getLedgerVersion(), 8819951);
|
||||
});
|
||||
|
||||
it('getLedgerHeader', function() {
|
||||
return this.api.getLedgerHeader().then(
|
||||
_.partial(checkResult, responses.getLedgerHeader, 'getLedgerHeader'));
|
||||
});
|
||||
|
||||
it('ledger utils - compareTransactions', function() {
|
||||
let first = {outcome: {ledgerVersion: 1, indexInLedger: 100}};
|
||||
let second = {outcome: {ledgerVersion: 1, indexInLedger: 200}};
|
||||
|
||||
Reference in New Issue
Block a user