mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Get names of transactions and ledger types from jss
This commit is contained in:
committed by
Manoj doshi
parent
be139d9bde
commit
b39b0fef39
@@ -35,7 +35,7 @@ create (Account const& account,
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::TransactionType] = "TicketCreate";
|
||||
jv[jss::TransactionType] = jss::TicketCreate;
|
||||
if (expire)
|
||||
jv["Expiration"] = *expire;
|
||||
if (target)
|
||||
@@ -49,7 +49,7 @@ Json::Value
|
||||
cancel(Account const& account, std::string const & ticketId)
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[jss::TransactionType] = "TicketCancel";
|
||||
jv[jss::TransactionType] = jss::TicketCancel;
|
||||
jv[jss::Account] = account.human();
|
||||
jv["TicketID"] = ticketId;
|
||||
return jv;
|
||||
|
||||
Reference in New Issue
Block a user