| 430 | } // namespace rpc_convert |
| 431 | |
| 432 | static UniValue ParseParam(const CRPCConvertParam* param, std::string_view raw) |
| 433 | { |
| 434 | // Only parse parameters which have the JSON or JSON_OR_STRING format; otherwise, treat them as strings. |
| 435 | return (param && (param->format == ParamFormat::JSON || param->format == ParamFormat::JSON_OR_STRING)) ? Parse(raw, param->format) : UniValue(std::string(raw)); |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Convert command lines arguments to params object when -named is disabled. |
no test coverage detected