Skip to content

Commit

Permalink
APIv2: show DeliverMax in submit, submit_multisigned (#4827)
Browse files Browse the repository at this point in the history
Show `DeliverMax` instead of `Amount` in output from `submit`,
`submit_multisigned`, `sign`, and `sign_for`.

Fix #4829
  • Loading branch information
Bronek authored Nov 29, 2023
1 parent c045060 commit fe8621b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ripple/rpc/impl/TransactionSign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <ripple/app/ledger/LedgerMaster.h>
#include <ripple/app/ledger/OpenLedger.h>
#include <ripple/app/main/Application.h>
#include <ripple/app/misc/DeliverMax.h>
#include <ripple/app/misc/LoadFeeTrack.h>
#include <ripple/app/misc/Transaction.h>
#include <ripple/app/misc/TxQ.h>
Expand Down Expand Up @@ -659,6 +660,11 @@ transactionFormatResultImpl(Transaction::pointer tpTrans, unsigned apiVersion)
else
jvResult[jss::tx_json] = tpTrans->getJson(JsonOptions::none);

RPC::insertDeliverMax(
jvResult[jss::tx_json],
tpTrans->getSTransaction()->getTxnType(),
apiVersion);

jvResult[jss::tx_blob] =
strHex(tpTrans->getSTransaction()->getSerializer().peekData());

Expand Down

0 comments on commit fe8621b

Please sign in to comment.