mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Breaking Json API, return versions as chars.
This commit is contained in:
@@ -57,9 +57,11 @@ std::string SerializedLedgerEntry::getText() const
|
||||
Json::Value SerializedLedgerEntry::getJson(int options) const
|
||||
{
|
||||
Json::Value ret(mObject.getJson(options));
|
||||
ret["type"] = mFormat->t_name;
|
||||
ret["index"] = mIndex.GetHex();
|
||||
ret["version"] = mVersion.getText();
|
||||
|
||||
ret["type"] = mFormat->t_name;
|
||||
ret["index"] = mIndex.GetHex();
|
||||
ret["version"] = std::string(1, mVersion);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user