diff --git a/react/src/components/dashboard/coinTileItem.js b/react/src/components/dashboard/coinTileItem.js index 3b6d051..0d1cc26 100644 --- a/react/src/components/dashboard/coinTileItem.js +++ b/react/src/components/dashboard/coinTileItem.js @@ -49,7 +49,6 @@ class CoinTileItem extends React.Component { Store.dispatch(getFullTransactionsList(coin)); } if (mode === 'basilisk') { - console.log('dispatchCoinActions', mode); const useAddress = this.props.ActiveCoin.mainBasiliskAddress ? this.props.ActiveCoin.mainBasiliskAddress : this.props.Dashboard.activeHandle[coin]; Store.dispatch(iguanaActiveHandle(true)); diff --git a/react/src/components/dashboard/sendCoin.js b/react/src/components/dashboard/sendCoin.js index 7851702..b698e60 100644 --- a/react/src/components/dashboard/sendCoin.js +++ b/react/src/components/dashboard/sendCoin.js @@ -6,7 +6,8 @@ import { sendNativeTx, getKMDOPID, resolveOpenAliasAddress, - triggerToaster + triggerToaster, + iguanaUTXORawTX } from '../../actions/actionCreators'; import Store from '../../store'; @@ -117,10 +118,24 @@ class SendCoin extends React.Component { } handleSubmit() { - Store.dispatch(sendNativeTx(this.props.ActiveCoin.coin, this.state)); - setTimeout(function() { + const utxoSet = this.props.ActiveCoin.cache[this.props.ActiveCoin.coin][this.state.sendFrom].refresh; + const sendData = { + 'coin': this.props.ActiveCoin.coin, + 'sendfrom': this.state.sendFrom, + 'sendtoaddr': this.state.sendTo, + 'amount': this.state.amount, + 'txfee': this.state.fee, + 'sendsig': this.state.sendSig === true ? 0 : 1, + 'utxos': utxoSet + }; + iguanaUTXORawTX(sendData) + .then(function(json) { + console.log(json); + }); + //Store.dispatch(sendNativeTx(this.props.ActiveCoin.coin, this.state)); + /*setTimeout(function() { Store.dispatch(getKMDOPID(null, this.props.ActiveCoin.coin)); - }, 1000); + }, 1000);*/ } renderSignedTx(signedtx) { diff --git a/react/src/config.js b/react/src/config.js index 0eb154b..ec47c42 100644 --- a/react/src/config.js +++ b/react/src/config.js @@ -5,4 +5,5 @@ module.exports = { enableCacheApi: true, useBasiliskInstance: true, openAlias: true, + debug: true, };