This commit is contained in:
jl777
2019-01-20 00:03:36 -11:00
parent 0ceca4c745
commit 53b2d35da7
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,6 @@ one other technical note is that komodod has the insight-explorer extensions bui
#include "../komodo_defs.h" #include "../komodo_defs.h"
#include "../utlist.h" #include "../utlist.h"
#include "../uthash.h" #include "../uthash.h"
#include "../komodo_cJSON.h"
extern int32_t KOMODO_CONNECTING,KOMODO_CCACTIVATE,KOMODO_DEALERNODE; extern int32_t KOMODO_CONNECTING,KOMODO_CCACTIVATE,KOMODO_DEALERNODE;
extern uint32_t ASSETCHAINS_CC; extern uint32_t ASSETCHAINS_CC;
@@ -70,6 +69,7 @@ extern uint8_t ASSETCHAINS_CCDISABLES[256];
typedef union _bits256 bits256; typedef union _bits256 bits256;
#endif #endif
#include "../komodo_cJSON.h"
struct CC_utxo struct CC_utxo
{ {

View File

@@ -276,7 +276,7 @@ std::string CClib_rawtxgen(struct CCcontract_info *cp,uint8_t funcid,cJSON *para
{ {
if ( cJSON_GetArraySize(params) > 0 ) if ( cJSON_GetArraySize(params) > 0 )
{ {
funds = (int64_t)jdouble(jitem(params,0))*COIN + 0.0000000049; funds = (int64_t)jdouble(jitem(params,0),0)*COIN + 0.0000000049;
return(Faucet2Fund(cp,0,funds)); return(Faucet2Fund(cp,0,funds));
} else return(""); } else return("");
} }