@@ -937,6 +937,12 @@ UniValue TokenInfo(uint256 tokenid)
|
||||
result.push_back(Pair("error", "cant find tokenid"));
|
||||
return(result);
|
||||
}
|
||||
if (hashBlock.IsNull()) {
|
||||
result.push_back(Pair("result", "error"));
|
||||
result.push_back(Pair("error", "the transaction is still in mempool"));
|
||||
return(result);
|
||||
}
|
||||
|
||||
if (tokenbaseTx.vout.size() > 0 && DecodeTokenCreateOpRet(tokenbaseTx.vout[tokenbaseTx.vout.size() - 1].scriptPubKey, origpubkey, name, description, oprets) != 'c')
|
||||
{
|
||||
LOGSTREAM((char *)"cctokens", CCLOG_INFO, stream << "TokenInfo() passed tokenid isnt token creation txid" << std::endl);
|
||||
|
||||
@@ -7352,9 +7352,13 @@ UniValue tokencreate(const UniValue& params, bool fHelp)
|
||||
|
||||
if (params.size() == 4) {
|
||||
nonfungibleData = ParseHex(params[3].get_str());
|
||||
if (nonfungibleData.size() > 10000) // opret limit
|
||||
if (nonfungibleData.size() > IGUANA_MAXSCRIPTSIZE) // opret limit
|
||||
{
|
||||
ERR_RESULT("Non-fungible data must be <= 10000");
|
||||
ERR_RESULT("Non-fungible data size must be <= " + std::to_string(IGUANA_MAXSCRIPTSIZE));
|
||||
return(result);
|
||||
}
|
||||
if( nonfungibleData.empty() ) {
|
||||
ERR_RESULT("Non-fungible data incorrect");
|
||||
return(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user