mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
rpc: Remove index-based Arg accessor
This commit is contained in:
parent
42d5a1ff25
commit
fa3169b073
7 changed files with 28 additions and 58 deletions
|
|
@ -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),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue