Skip to content

Commit 7ee4150

Browse files
Broneksophiax851
authored andcommitted
APIv2: show DeliverMax in submit, submit_multisigned (XRPLF#4827)
Show `DeliverMax` instead of `Amount` in output from `submit`, `submit_multisigned`, `sign`, and `sign_for`. Fix XRPLF#4829
1 parent aff75e7 commit 7ee4150

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>
@@ -660,6 +661,11 @@ transactionFormatResultImpl(Transaction::pointer tpTrans, unsigned apiVersion)
660661
else
661662
jvResult[jss::tx_json] = tpTrans->getJson(JsonOptions::none);
662663

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

0 commit comments

Comments
 (0)