[rpc] Fix broken bitcoin-cli examples

This commit is contained in:
Andrew Toth 2019-10-14 13:09:42 -04:00
parent b33c03b0cb
commit 85016e52f6

View file

@ -610,7 +610,7 @@ static UniValue combinerawtransaction(const JSONRPCRequest& request)
"\"hex\" (string) The hex-encoded raw transaction with signature(s)\n" "\"hex\" (string) The hex-encoded raw transaction with signature(s)\n"
}, },
RPCExamples{ RPCExamples{
HelpExampleCli("combinerawtransaction", "[\"myhex1\", \"myhex2\", \"myhex3\"]") HelpExampleCli("combinerawtransaction", R"('["myhex1", "myhex2", "myhex3"]')")
}, },
}.Check(request); }.Check(request);
@ -858,7 +858,7 @@ static UniValue testmempoolaccept(const JSONRPCRequest& request)
"Sign the transaction, and get back the hex\n" "Sign the transaction, and get back the hex\n"
+ HelpExampleCli("signrawtransactionwithwallet", "\"myhex\"") + + HelpExampleCli("signrawtransactionwithwallet", "\"myhex\"") +
"\nTest acceptance of the transaction (signed hex)\n" "\nTest acceptance of the transaction (signed hex)\n"
+ HelpExampleCli("testmempoolaccept", "[\"signedhex\"]") + + HelpExampleCli("testmempoolaccept", R"('["signedhex"]')") +
"\nAs a JSON-RPC call\n" "\nAs a JSON-RPC call\n"
+ HelpExampleRpc("testmempoolaccept", "[\"signedhex\"]") + HelpExampleRpc("testmempoolaccept", "[\"signedhex\"]")
}, },
@ -1226,7 +1226,7 @@ UniValue combinepsbt(const JSONRPCRequest& request)
" \"psbt\" (string) The base64-encoded partially signed transaction\n" " \"psbt\" (string) The base64-encoded partially signed transaction\n"
}, },
RPCExamples{ RPCExamples{
HelpExampleCli("combinepsbt", "[\"mybase64_1\", \"mybase64_2\", \"mybase64_3\"]") HelpExampleCli("combinepsbt", R"('["mybase64_1", "mybase64_2", "mybase64_3"]')")
}, },
}.Check(request); }.Check(request);