mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Fix for RPC commands.
This commit is contained in:
@@ -2238,7 +2238,7 @@ Json::Value RPCHandler::doRpcCommand(const std::string& strMethod, Json::Value&
|
||||
|
||||
Json::Value jvRequest = jvParams[0u];
|
||||
|
||||
if (!jvRequest.isObject() || !jvRequest.isMember("command"))
|
||||
if (!jvRequest.isObject())
|
||||
return rpcError(rpcINVALID_PARAMS);
|
||||
|
||||
// Provide the JSON-RPC method as the field "command" in the request.
|
||||
|
||||
Reference in New Issue
Block a user