rpc: Remove index-based Arg accessor

This commit is contained in:
MarcoFalke
2024-04-29 17:39:07 +02:00
parent 42d5a1ff25
commit fa3169b073
7 changed files with 28 additions and 58 deletions

View File

@@ -677,7 +677,7 @@ static const UniValue* DetailMaybeArg(CheckFn* check, const std::vector<RPCArg>&
static void CheckRequiredOrDefault(const RPCArg& param)
{
// Must use `Arg<Type>(i)` to get the argument or its default value.
// Must use `Arg<Type>(key)` to get the argument or its default value.
const bool required{
std::holds_alternative<RPCArg::Optional>(param.m_fallback) && RPCArg::Optional::NO == std::get<RPCArg::Optional>(param.m_fallback),
};