mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add nftoken_id, nftoken_ids, offer_id to meta for transaction stream (#5230)
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
#include <xrpl/protocol/BuildInfo.h>
|
||||
#include <xrpl/protocol/Feature.h>
|
||||
#include <xrpl/protocol/MultiApiJson.h>
|
||||
#include <xrpl/protocol/NFTSyntheticSerializer.h>
|
||||
#include <xrpl/protocol/RPCErr.h>
|
||||
#include <xrpl/protocol/TxFlags.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
@@ -3258,6 +3259,7 @@ NetworkOPsImp::transJson(
|
||||
jvObj[jss::meta] = meta->get().getJson(JsonOptions::none);
|
||||
RPC::insertDeliveredAmount(
|
||||
jvObj[jss::meta], *ledger, transaction, meta->get());
|
||||
RPC::insertNFTSyntheticInJson(jvObj, transaction, meta->get());
|
||||
RPC::insertMPTokenIssuanceID(
|
||||
jvObj[jss::meta], transaction, meta->get());
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ populateJsonResponse(
|
||||
txnMeta->getJson(JsonOptions::include_date);
|
||||
insertDeliveredAmount(
|
||||
jvObj[jss::meta], context, txn, *txnMeta);
|
||||
insertNFTSyntheticInJson(jvObj, sttx, *txnMeta);
|
||||
RPC::insertNFTSyntheticInJson(jvObj, sttx, *txnMeta);
|
||||
RPC::insertMPTokenIssuanceID(
|
||||
jvObj[jss::meta], sttx, *txnMeta);
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ populateJsonResponse(
|
||||
response[jss::meta] = meta->getJson(JsonOptions::none);
|
||||
insertDeliveredAmount(
|
||||
response[jss::meta], context, result.txn, *meta);
|
||||
insertNFTSyntheticInJson(response, sttx, *meta);
|
||||
RPC::insertNFTSyntheticInJson(response, sttx, *meta);
|
||||
RPC::insertMPTokenIssuanceID(response[jss::meta], sttx, *meta);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user