mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 14:50:54 +00:00
Show Share.mpt_issuance_id rather than MPTokenIssuanceID
This commit is contained in:
@@ -89,6 +89,7 @@ JSS(SettleDelay); // in: TransactionSign
|
||||
JSS(SendMax); // in: TransactionSign
|
||||
JSS(Sequence); // in/out: TransactionSign; field.
|
||||
JSS(SetFlag); // field.
|
||||
JSS(Share); // out: Vault
|
||||
JSS(Signer); // field.
|
||||
JSS(Signers); // field.
|
||||
JSS(SigningPubKey); // field.
|
||||
|
||||
@@ -141,6 +141,13 @@ STLedgerEntry::getJson(JsonOptions options) const
|
||||
if (getType() == ltMPTOKEN_ISSUANCE)
|
||||
ret[jss::mpt_issuance_id] = to_string(
|
||||
makeMptID(getFieldU32(sfSequence), getAccountID(sfIssuer)));
|
||||
else if (getType() == ltVAULT)
|
||||
{
|
||||
// Replace "MPTokenIssuanceID" with functionally equivalent "Share"
|
||||
const char* const fieldMptIssue = sfMPTokenIssuanceID.fieldName.c_str();
|
||||
ret.removeMember(fieldMptIssue);
|
||||
ret[jss::Share] = to_json(MPTIssue(getFieldH192(sfMPTokenIssuanceID)));
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user