removed test CCerror code
This commit is contained in:
@@ -6952,20 +6952,12 @@ UniValue tokenlist(const UniValue& params, bool fHelp)
|
|||||||
|
|
||||||
UniValue tokeninfo(const UniValue& params, bool fHelp)
|
UniValue tokeninfo(const UniValue& params, bool fHelp)
|
||||||
{
|
{
|
||||||
#ifdef TESTMODE
|
|
||||||
std::cerr << "is CCerror clear? CCerror=" << CCerror << std::endl;
|
|
||||||
#endif
|
|
||||||
uint256 tokenid;
|
uint256 tokenid;
|
||||||
if ( fHelp || params.size() != 1 )
|
if ( fHelp || params.size() != 1 )
|
||||||
throw runtime_error("tokeninfo tokenid\n");
|
throw runtime_error("tokeninfo tokenid\n");
|
||||||
if ( ensure_CCrequirements() < 0 )
|
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");
|
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
|
||||||
tokenid = Parseuint256((char *)params[0].get_str().c_str());
|
tokenid = Parseuint256((char *)params[0].get_str().c_str());
|
||||||
|
|
||||||
#ifdef TESTMODE
|
|
||||||
CCerror = "test error";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return(AssetInfo(tokenid));
|
return(AssetInfo(tokenid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user