diff --git a/src/cc/CCassetstx.cpp b/src/cc/CCassetstx.cpp index 051459f14..dfe76655c 100644 --- a/src/cc/CCassetstx.cpp +++ b/src/cc/CCassetstx.cpp @@ -50,6 +50,7 @@ uint64_t GetAssetBalance(CPubKey pk,uint256 tokenid) UniValue AssetOrders(uint256 refassetid) { + static uint256 zero; uint64_t price; uint256 txid,hashBlock,assetid,assetid2; std::vector origpubkey; CTransaction vintx; UniValue result(UniValue::VARR); std::vector > unspentOutputs; uint8_t funcid; char funcidstr[16],origaddr[64],assetidstr[65]; struct CCcontract_info *cp,C; cp = CCinit(&C,EVAL_ASSETS); SetCCunspents(unspentOutputs,(char *)cp->unspendableCCaddr);