Get names of transactions and ledger types from jss

This commit is contained in:
Scott Schurr
2019-05-01 10:52:39 -07:00
committed by Manoj doshi
parent be139d9bde
commit b39b0fef39
39 changed files with 216 additions and 170 deletions

View File

@@ -36,7 +36,7 @@ signers (Account const& account,
{
Json::Value jv;
jv[jss::Account] = account.human();
jv[jss::TransactionType] = "SignerListSet";
jv[jss::TransactionType] = jss::SignerListSet;
jv[sfSignerQuorum.getJsonName()] = quorum;
auto& ja = jv[sfSignerEntries.getJsonName()];
ja.resize(v.size());
@@ -55,7 +55,7 @@ signers (Account const& account, none_t)
{
Json::Value jv;
jv[jss::Account] = account.human();
jv[jss::TransactionType] = "SignerListSet";
jv[jss::TransactionType] = jss::SignerListSet;
jv[sfSignerQuorum.getJsonName()] = 0;
return jv;
}