From 9d860bd978950e681db874d6870011acd326e81b Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 12 Sep 2018 02:36:00 -1100 Subject: [PATCH] Fix --- src/cc/gateways.cpp | 6 ++++++ src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cc/gateways.cpp b/src/cc/gateways.cpp index 09ae1dd7b..9cfe9c4c9 100644 --- a/src/cc/gateways.cpp +++ b/src/cc/gateways.cpp @@ -116,6 +116,12 @@ string oracles gatewaysclaim bindtxid coin deposittxid destpub amount ./c gatewaysclaim e6c99f79d4afb216aa8063658b4222edb773dd24bb0f8e91bd4ef341f3e47e5e KMD 9d80ea79a65aaa0d464f8b762356fa01047e16e9793505a22ca04559f81a6eb6 0223d114dededb04f253816d6ad0ce78dd08c617c94ce3c53bf50dc74a5157bef8 7.6999 + + now the asset is in the pubkey's asset address! + it can be used, traded freely and any node who has the asset can do a gatewayswithdraw + + gatewayswithdraw bindtxid coin withdrawpub amount + ./c gatewayswithdraw e6c99f79d4afb216aa8063658b4222edb773dd24bb0f8e91bd4ef341f3e47e5e KMD 03b7621b44118017a16043f19b30cc8a4cfe068ac4e42417bae16ba460c80f3828 1 */ // start of consensus code diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index aa29b7c46..df2edee04 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5495,7 +5495,7 @@ UniValue gatewaysclaim(const UniValue& params, bool fHelp) UniValue gatewayswithdraw(const UniValue& params, bool fHelp) { UniValue result(UniValue::VOBJ); uint256 bindtxid; int64_t amount; std::string hex,coin; std::vector withdrawpub; - if ( fHelp || params.size() != 5 ) + if ( fHelp || params.size() != 4 ) throw runtime_error("gatewayswithdraw bindtxid coin withdrawpub amount\n"); if ( ensure_CCrequirements() < 0 ) throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");