This commit is contained in:
jl777
2019-01-19 23:54:51 -11:00
parent 01d2fa36a2
commit b4e0b6bca4
2 changed files with 219 additions and 3 deletions

View File

@@ -5359,7 +5359,7 @@ UniValue cclib(const UniValue& params, bool fHelp)
throw runtime_error("cclib method [JSON params]\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");
method = params[0].get_str().c_str();
method = (char *)params[0].get_str().c_str();
jsonparams = cJSON_Parse(params[1].get_str().c_str());
return(CClib(cp,method,jsonparams));
}