diff --git a/src/cc/CCinclude.h b/src/cc/CCinclude.h index 585786369..552c25e3e 100644 --- a/src/cc/CCinclude.h +++ b/src/cc/CCinclude.h @@ -114,6 +114,7 @@ uint256 OracleMerkle(int32_t height,uint256 reforacletxid,char *format,std::vect uint256 OraclesBatontxid(uint256 oracletxid,CPubKey pk); int64_t AddAssetInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPubKey pk,uint256 assetid,int64_t total,int32_t maxinputs); bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx); +bool DecodeAssetCreateOpRet(const CScript &scriptPubKey,std::vector &origpubkey,std::string &name,std::string &description); // CCcustom CPubKey GetUnspendable(struct CCcontract_info *cp,uint8_t *unspendablepriv); diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index f1d6536cc..7c18b9dbe 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -236,7 +236,7 @@ int64_t CCfullsupply(uint256 tokenid) return(0); } -int64_t CCtoken_balance(char *destaddr,uint256 tokenid) +int64_t CCtoken_balance(char *coinaddr,uint256 tokenid) { int64_t price,sum = 0; int32_t numvouts; CTransaction tx; uint256 assetid,assetid2,txid,hashBlock; std::vector origpubkey; std::vector > unspentOutputs; SetCCunspents(unspentOutputs,coinaddr);