Skip to content

Commit 8500f7b

Browse files
committed
rpc/createrawtransaction: redefine addresses as OBJ_USER_KEYS
The OBJ type is for actual objects with defined keys; OBJ_USER_KEYS is for objects with user-defined keys (such as the bitcoin address(es) in the createrawtransaction output object.
1 parent d9e2183 commit 8500f7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ static RPCHelpMan createrawtransaction()
397397
"For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also\n"
398398
" accepted as second parameter.",
399399
{
400-
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
400+
{"", RPCArg::Type::OBJ_USER_KEYS, RPCArg::Optional::OMITTED, "",
401401
{
402402
{"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},
403403
},

0 commit comments

Comments
 (0)