Skip to content

Commit fa95f20

Browse files
author
MarcoFalke
committed
doc: Fix incorrect sendmany RPC doc
This enables the type check and fixes the wrong docs. Otherwise the enabled check would lead to test errors, such as: > "wallet_labels.py", line 96, in run_test > node.sendmany( > > test_framework.authproxy.JSONRPCException: > JSON value of type null is not of expected type string (-3)
1 parent fa96f93 commit fa95f20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/wallet/rpc/spend.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,11 @@ RPCHelpMan sendtoaddress()
314314
RPCHelpMan sendmany()
315315
{
316316
return RPCHelpMan{"sendmany",
317-
"\nSend multiple times. Amounts are double-precision floating point numbers." +
317+
"Send multiple times. Amounts are double-precision floating point numbers." +
318318
HELP_REQUIRING_PASSPHRASE,
319319
{
320-
{"dummy", RPCArg::Type::STR, RPCArg::Optional::NO, "Must be set to \"\" for backwards compatibility.",
320+
{"dummy", RPCArg::Type::STR, RPCArg::Default{"\"\""}, "Must be set to \"\" for backwards compatibility.",
321321
RPCArgOptions{
322-
.skip_type_check = true,
323322
.oneline_description = "\"\"",
324323
}},
325324
{"amounts", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::NO, "The addresses and amounts",

0 commit comments

Comments
 (0)