diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index d902ba80c..f7c66a7a8 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -226,6 +226,10 @@ CScript EncodeOpRet(uint8_t funcid,uint256 assetid,uint256 assetid2,uint64_t pri bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey) { CTxDestination address; txnouttype whichType; + int32_t i; uint8_t *ptr = (uint8_t *)scriptPubKey.data(); + for (i=0; i 3 || params.size() < 2 ) throw runtime_error("tokencreate name supply description\n"); - name = params[0].get_str(); + name = params[0].get_str(); supply = atof(params[1].get_str().c_str()) * COIN; if ( params.size() == 3 ) description = params[2].get_str(); @@ -4848,6 +4848,7 @@ UniValue tokencreate(const UniValue& params, bool fHelp) result.push_back(Pair("result", "success")); result.push_back(Pair("hex", hex)); } else result.push_back(Pair("error", "could create transaction")); + return(result); } UniValue tokentransfer(const UniValue& params, bool fHelp)