* Convert command lines arguments to params object when -named is disabled. */
| 439 | * Convert command lines arguments to params object when -named is disabled. |
| 440 | */ |
| 441 | UniValue RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams) |
| 442 | { |
| 443 | UniValue params(UniValue::VARR); |
| 444 | |
| 445 | for (std::string_view s : strParams) { |
| 446 | params.push_back(ParseParam(rpc_convert::FromPosition(strMethod, params.size()), s)); |
| 447 | } |
| 448 | |
| 449 | return params; |
| 450 | } |
| 451 | |
| 452 | /** |
| 453 | * Convert command line arguments to params object when -named is enabled. |