From ae465a1d04023bdcce92c76fc4b62b6e97a5d5a3 Mon Sep 17 00:00:00 2001 From: Alrighttt Date: Tue, 6 Aug 2019 08:08:32 +0000 Subject: [PATCH] fix opreturn_burn help info --- src/wallet/rpcwallet.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index d3d2d6dea..76aad06ab 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -8304,7 +8304,7 @@ UniValue opreturn_burn(const UniValue& params, bool fHelp) { throw runtime_error( "opreturn_burn burn_amount hexstring ( txfee )\n" - "\nBurn the specified amount of coins via OP_RETURN. Returns transaction raw hex that must then be broadcast via sendrawtransaction rpc\n" + "\nBurn the specified amount of coins via OP_RETURN. Returns unsigned transaction raw hex that must then be signed via signrawtransaction and broadcast via sendrawtransaction rpc\n" "\nArguments:\n" "1. \"burn_amount\" (numeric, required) Amount of coins to burn.\n" "2. \"hexstring\" (string, required) Hex string to include in OP_RETURN data.\n" @@ -8322,10 +8322,8 @@ UniValue opreturn_burn(const UniValue& params, bool fHelp) + HelpExampleRpc("opreturn_burn", "\"10\", \"deadbeef\", 0.00005") ); } - struct CCcontract_info *cp, C; UniValue ret(UniValue::VOBJ); - // this doesnt actually require EVAL_ORACLES and is just used as a dummy for CCFinalizeTx - cp = CCinit(&C, EVAL_ORACLES); - + UniValue ret(UniValue::VOBJ); + CAmount nAmount = AmountFromValue(params[0]); vHexStr = ParseHex(params[1].get_str()); if ( vHexStr.size() == 0 )