Add delivered amount to GetAccountTransactionHistory responses

This commit is contained in:
CJ Cobb
2020-05-01 20:25:54 -07:00
committed by manojsdoshi
parent 8f984042f4
commit 16f79d160a
3 changed files with 91 additions and 24 deletions

View File

@@ -1567,6 +1567,9 @@ convert(org::xrpl::rpc::v1::Meta& to, std::shared_ptr<TxMeta> const& from)
to.mutable_transaction_result()->set_result(
transToken(from->getResultTER()));
if (from->hasDeliveredAmount())
convert(*to.mutable_delivered_amount(), from->getDeliveredAmount());
STArray& nodes = from->getNodes();
for (auto it = nodes.begin(); it != nodes.end(); ++it)
{