Skip to content

Commit 85016e5

Browse files
committed
[rpc] Fix broken bitcoin-cli examples
1 parent b33c03b commit 85016e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static UniValue combinerawtransaction(const JSONRPCRequest& request)
610610
"\"hex\" (string) The hex-encoded raw transaction with signature(s)\n"
611611
},
612612
RPCExamples{
613-
HelpExampleCli("combinerawtransaction", "[\"myhex1\", \"myhex2\", \"myhex3\"]")
613+
HelpExampleCli("combinerawtransaction", R"('["myhex1", "myhex2", "myhex3"]')")
614614
},
615615
}.Check(request);
616616

@@ -858,7 +858,7 @@ static UniValue testmempoolaccept(const JSONRPCRequest& request)
858858
"Sign the transaction, and get back the hex\n"
859859
+ HelpExampleCli("signrawtransactionwithwallet", "\"myhex\"") +
860860
"\nTest acceptance of the transaction (signed hex)\n"
861-
+ HelpExampleCli("testmempoolaccept", "[\"signedhex\"]") +
861+
+ HelpExampleCli("testmempoolaccept", R"('["signedhex"]')") +
862862
"\nAs a JSON-RPC call\n"
863863
+ HelpExampleRpc("testmempoolaccept", "[\"signedhex\"]")
864864
},
@@ -1226,7 +1226,7 @@ UniValue combinepsbt(const JSONRPCRequest& request)
12261226
" \"psbt\" (string) The base64-encoded partially signed transaction\n"
12271227
},
12281228
RPCExamples{
1229-
HelpExampleCli("combinepsbt", "[\"mybase64_1\", \"mybase64_2\", \"mybase64_3\"]")
1229+
HelpExampleCli("combinepsbt", R"('["mybase64_1", "mybase64_2", "mybase64_3"]')")
12301230
},
12311231
}.Check(request);
12321232

0 commit comments

Comments
 (0)