mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
rpc: Run type check against RPCArgs
This commit is contained in:
parent
faf96721a6
commit
fa9f6d7bcd
12 changed files with 83 additions and 153 deletions
|
|
@ -195,8 +195,6 @@ static RPCHelpMan getdescriptorinfo()
|
|||
},
|
||||
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
||||
{
|
||||
RPCTypeCheck(request.params, {UniValue::VSTR});
|
||||
|
||||
FlatSigningProvider provider;
|
||||
std::string error;
|
||||
auto desc = Parse(request.params[0].get_str(), provider, error);
|
||||
|
|
@ -247,7 +245,6 @@ static RPCHelpMan deriveaddresses()
|
|||
},
|
||||
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
||||
{
|
||||
RPCTypeCheck(request.params, {UniValue::VSTR, UniValueType()}); // Range argument is checked later
|
||||
const std::string desc_str = request.params[0].get_str();
|
||||
|
||||
int64_t range_begin = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue