computeLedgerHash - add requireRawTransactions option

This commit is contained in:
Elliot Lee
2018-08-28 17:31:12 -07:00
parent b9c953fce6
commit 3f2d9d198e
2 changed files with 16 additions and 5 deletions

View File

@@ -2550,7 +2550,7 @@ describe('RippleAPI', function () {
.then(response => {
const ledger = _.assign({}, response,
{ parentCloseTime: response.closeTime });
const hash = this.api.computeLedgerHash(ledger);
const hash = this.api.computeLedgerHash(ledger, {requireRawTransactions: true});
assert.strictEqual(hash,
'E6DB7365949BF9814D76BCC730B01818EB9136A89DB224F3F9F5AAE4569D758E');
});