mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge ElementsProject/elements#1559: rpc: use null for optional parameters
14a52bf188rpc: use null for optional parameters (Ruslan Kasheparov) Pull request description: Fixes: #1558 ACKs for top commit: tomt1664: Tested ACK14a52bf188Tree-SHA512: 161da840bb23c8573dca19b3216e1da03924d65a2ac17075e37c2fb8697994fe9a14b82ee8453f6122692409cb417c5dfe1f726fa0710458c20d207c153a124c
This commit is contained in:
parent
df752b810c
commit
cda99dbfea
11 changed files with 56 additions and 13 deletions
|
|
@ -145,7 +145,7 @@ static RPCHelpMan help()
|
|||
[&](const RPCHelpMan& self, const JSONRPCRequest& jsonRequest) -> UniValue
|
||||
{
|
||||
std::string strCommand;
|
||||
if (jsonRequest.params.size() > 0) {
|
||||
if (!jsonRequest.params[0].isNull()) {
|
||||
strCommand = jsonRequest.params[0].get_str();
|
||||
}
|
||||
if (strCommand == "dump_all_command_conversions") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue