From 88b5d9e46aa28912531d7db1094e03c6b4ecafd7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 21 Sep 2018 03:34:39 -1100 Subject: [PATCH] Fix token convert --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 7c2314480..5a14370c4 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -6291,7 +6291,7 @@ UniValue tokentransfer(const UniValue& params, bool fHelp) UniValue tokenconvert(const UniValue& params, bool fHelp) { UniValue result(UniValue::VOBJ); std::string hex; int32_t evalcode; int64_t amount; uint256 tokenid; - if ( fHelp || params.size() != 3 ) + if ( fHelp || params.size() != 4 ) throw runtime_error("tokenconvert evalcode tokenid pubkey amount\n"); if ( ensure_CCrequirements() < 0 ) throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");