aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpc/coins.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-07 14:53:42 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-24 10:44:45 +0200
commitc00000df1605788acadceb90c22ae9f00db8a9dc (patch)
tree547e525ac6821f751bcca2dd9534043aa75fc382 /src/wallet/rpc/coins.cpp
parentcd5d2f5f0938ad4f8737caf4e7c501101818fd36 (diff)
downloadbitcoin-c00000df1605788acadceb90c22ae9f00db8a9dc.tar.xz
rpc: Add MaybeArg() and Arg() default helper
Diffstat (limited to 'src/wallet/rpc/coins.cpp')
-rw-r--r--src/wallet/rpc/coins.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpc/coins.cpp b/src/wallet/rpc/coins.cpp
index 6f0623cdf5..fdc6ee055d 100644
--- a/src/wallet/rpc/coins.cpp
+++ b/src/wallet/rpc/coins.cpp
@@ -194,8 +194,8 @@ RPCHelpMan getbalance()
LOCK(pwallet->cs_wallet);
- const UniValue& dummy_value = request.params[0];
- if (!dummy_value.isNull() && dummy_value.get_str() != "*") {
+ const auto dummy_value{self.MaybeArg<std::string>(0)};
+ if (dummy_value && *dummy_value != "*") {
throw JSONRPCError(RPC_METHOD_DEPRECATED, "dummy first argument must be excluded or set to \"*\".");
}