From f81ef4303e057e85aa24772c865287c17ffa4350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Wed, 14 Apr 2021 15:01:00 +0100 Subject: rpc: Keep default argument value in correct type --- src/rpc/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rpc/util.h') diff --git a/src/rpc/util.h b/src/rpc/util.h index 6e783e19fb..8ec18b2f35 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -145,7 +145,9 @@ struct RPCArg { */ OMITTED, }; - using Fallback = std::variant; + using DefaultHint = std::string; + using Default = UniValue; + using Fallback = std::variant; const std::string m_names; //!< The name of the arg (can be empty for inner args, can contain multiple aliases separated by | for named request arguments) const Type m_type; const bool m_hidden; -- cgit v1.2.3