Skip to content

Commit fe8621b

Browse files
authored
APIv2: show DeliverMax in submit, submit_multisigned (#4827)
Show `DeliverMax` instead of `Amount` in output from `submit`, `submit_multisigned`, `sign`, and `sign_for`. Fix #4829
1 parent c045060 commit fe8621b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ripple/rpc/impl/TransactionSign.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <ripple/app/ledger/LedgerMaster.h>
2121
#include <ripple/app/ledger/OpenLedger.h>
2222
#include <ripple/app/main/Application.h>
23+
#include <ripple/app/misc/DeliverMax.h>
2324
#include <ripple/app/misc/LoadFeeTrack.h>
2425
#include <ripple/app/misc/Transaction.h>
2526
#include <ripple/app/misc/TxQ.h>
@@ -659,6 +660,11 @@ transactionFormatResultImpl(Transaction::pointer tpTrans, unsigned apiVersion)
659660
else
660661
jvResult[jss::tx_json] = tpTrans->getJson(JsonOptions::none);
661662

663+
RPC::insertDeliverMax(
664+
jvResult[jss::tx_json],
665+
tpTrans->getSTransaction()->getTxnType(),
666+
apiVersion);
667+
662668
jvResult[jss::tx_blob] =
663669
strHex(tpTrans->getSTransaction()->getSerializer().peekData());
664670

0 commit comments

Comments
 (0)