Browse Source

utxo raw

all-modes
pbca26 8 years ago
parent
commit
d2095ef3cc
  1. 1
      react/src/components/dashboard/coinTileItem.js
  2. 23
      react/src/components/dashboard/sendCoin.js
  3. 1
      react/src/config.js

1
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));

23
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) {

1
react/src/config.js

@ -5,4 +5,5 @@ module.exports = {
enableCacheApi: true,
useBasiliskInstance: true,
openAlias: true,
debug: true,
};

Loading…
Cancel
Save