Add getLedgerHeader method

This commit is contained in:
Chris Clark
2015-08-12 17:11:32 -07:00
parent 002102ce62
commit 728595dc96
8 changed files with 101 additions and 0 deletions

View File

@@ -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}};