mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Get names of transactions and ledger types from jss
This commit is contained in:
committed by
Manoj doshi
parent
be139d9bde
commit
b39b0fef39
@@ -85,7 +85,7 @@ class LedgerLoad_test : public beast::unit_test::suite
|
||||
retval.hashes = [&] {
|
||||
for(auto const& it : retval.ledger[jss::ledger][jss::accountState])
|
||||
{
|
||||
if(it[sfLedgerEntryType.fieldName] == "LedgerHashes")
|
||||
if(it[sfLedgerEntryType.fieldName] == jss::LedgerHashes)
|
||||
return it[sfHashes.fieldName];
|
||||
}
|
||||
return Json::Value {};
|
||||
|
||||
Reference in New Issue
Block a user