mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 17:35:51 +00:00
Finish moving Json code.
This commit is contained in:
@@ -204,14 +204,8 @@ Json::Value RPCServer::doAccountInfo(Json::Value ¶ms)
|
||||
LocalAccount::pointer account=theApp->getWallet().parseAccount(acct);
|
||||
if(!account)
|
||||
return JSONRPCError(500, "Account not found");
|
||||
|
||||
Json::Value ret(Json::objectValue);
|
||||
ret["Family"]=account->getFamilyName();
|
||||
ret["ShortName"]=account->getShortName();
|
||||
ret["FullName"]=account->getFullName();
|
||||
ret["AccountID"]=NewcoinAddress(account->getAddress()).GetString();
|
||||
ret["Issued"]=Json::Value(account->isIssued());
|
||||
return ret;
|
||||
|
||||
return account->getJson();
|
||||
}
|
||||
|
||||
Json::Value RPCServer::doNewAccount(Json::Value ¶ms)
|
||||
@@ -226,14 +220,7 @@ Json::Value RPCServer::doNewAccount(Json::Value ¶ms)
|
||||
LocalAccount::pointer account(theApp->getWallet().getNewLocalAccount(family));
|
||||
if(!account)
|
||||
return JSONRPCError(500, "Family not found");
|
||||
|
||||
Json::Value ret(Json::objectValue);
|
||||
ret["Family"]=account->getFamilyName();
|
||||
ret["ShortName"]=account->getShortName();
|
||||
ret["FullName"]=account->getFullName();
|
||||
ret["AccountID"]=NewcoinAddress(account->getAddress()).GetString();
|
||||
ret["Issued"]=Json::Value(account->isIssued());
|
||||
return ret;
|
||||
return account->getJson();
|
||||
}
|
||||
|
||||
Json::Value RPCServer::doLock(Json::Value ¶ms)
|
||||
|
||||
Reference in New Issue
Block a user