Make this code easier to debug.

This commit is contained in:
JoelKatz
2013-03-06 03:52:56 -08:00
parent 7e6e42e9d3
commit aa2503081e
6 changed files with 29 additions and 0 deletions

View File

@@ -15,4 +15,13 @@ Offer::Offer(SerializedLedgerEntry::pointer ledgerEntry) : AccountItem(ledgerEnt
mSeq = mLedgerEntry->getFieldU32(sfSequence);
}
Json::Value Offer::getJson(int)
{
Json::Value ret(Json::objectValue);
ret["account"] = mAccount.humanAccountID();
ret["taker_gets"] = getTakerGets().getFullText();
ret["taker_pays"] = getTakerPays().getFullText();
return ret;
}
// vim:ts=4