Skip to content

Commit dc4db23

Browse files
committed
rpc: address:amount dictionaries are OBJ_USER_KEYS
1 parent c8cf0a3 commit dc4db23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ static RPCHelpMan createpsbt()
14341434
"For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also\n"
14351435
" accepted as second parameter.",
14361436
{
1437-
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
1437+
{"", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::OMITTED, "",
14381438
{
14391439
{"address", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in " + CURRENCY_UNIT},
14401440
},

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static RPCHelpMan sendmany()
854854
HELP_REQUIRING_PASSPHRASE,
855855
{
856856
{"dummy", RPCArg::Type::STR, RPCArg::Optional::NO, "Must be set to \"\" for backwards compatibility.", "\"\""},
857-
{"amounts", RPCArg::Type::OBJ, RPCArg::Optional::NO, "The addresses and amounts",
857+
{"amounts", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::NO, "The addresses and amounts",
858858
{
859859
{"address", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The bitcoin address is the key, the numeric amount (can be string) in " + CURRENCY_UNIT + " is the value"},
860860
},
@@ -4012,7 +4012,7 @@ static RPCHelpMan send()
40124012
"That is, each address can only appear once and there can only be one 'data' object.\n"
40134013
"For convenience, a dictionary, which holds the key-value pairs directly, is also accepted.",
40144014
{
4015-
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
4015+
{"", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::OMITTED, "",
40164016
{
40174017
{"address", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in " + CURRENCY_UNIT + ""},
40184018
},
@@ -4358,7 +4358,7 @@ static RPCHelpMan walletcreatefundedpsbt()
43584358
"For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also\n"
43594359
"accepted as second parameter.",
43604360
{
4361-
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
4361+
{"", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::OMITTED, "",
43624362
{
43634363
{"address", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in " + CURRENCY_UNIT + ""},
43644364
},

0 commit comments

Comments
 (0)