From 2c2ab06909465fd8449b48e122120b93e4287bbd Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 23 Jul 2018 02:46:30 -1100 Subject: [PATCH] Hex --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 91916d6a7..2ae5e79da 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4851,7 +4851,7 @@ UniValue faucetfund(const UniValue& params, bool fHelp) throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n"); funds = atof(params[0].get_str().c_str()) * COIN; hex = FaucetFund(0,funds); - if ( hex.size() > 0 ) + if ( hex != 0 && hex.size() > 0 ) { result.push_back(Pair("result", "success")); result.push_back(Pair("hex", hex));