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
@@ -37,7 +37,7 @@ trust (Account const& account,
|
||||
Json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::LimitAmount] = amount.getJson(0);
|
||||
jv[jss::TransactionType] = "TrustSet";
|
||||
jv[jss::TransactionType] = jss::TrustSet;
|
||||
jv[jss::Flags] = flags;
|
||||
return jv;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ trust (Account const& account,
|
||||
auto& ja = jv[jss::LimitAmount] = amount.getJson(0);
|
||||
ja[jss::issuer] = peer.human();
|
||||
}
|
||||
jv[jss::TransactionType] = "TrustSet";
|
||||
jv[jss::TransactionType] = jss::TrustSet;
|
||||
jv[jss::Flags] = flags;
|
||||
return jv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user