Browse Source

native send subtract fee fix

v0.25
pbca26 7 years ago
parent
commit
2632503541
  1. 2
      react/src/actions/actions/nativeSend.js
  2. 3
      react/src/components/dashboard/sendCoin/sendCoin.js

2
react/src/actions/actions/nativeSend.js

@ -27,7 +27,7 @@ export function sendNativeTx(coin, _payload) {
token: Config.token, token: Config.token,
params: params:
(_payload.addressType === 'public' && _payload.sendTo.length !== 95) || !_payload.sendFrom ? (_payload.addressType === 'public' && _payload.sendTo.length !== 95) || !_payload.sendFrom ?
(_payload.substractFee ? (_payload.subtractFee ?
[ [
_payload.sendTo, _payload.sendTo,
_payload.amount, _payload.amount,

3
react/src/components/dashboard/sendCoin/sendCoin.js

@ -426,7 +426,8 @@ class SendCoin extends React.Component {
this.state.amount * 100000000, this.state.amount * 100000000,
this.state.sendTo, this.state.sendTo,
this.props.Dashboard.electrumCoins[this.props.ActiveCoin.coin].pub this.props.Dashboard.electrumCoins[this.props.ActiveCoin.coin].pub
).then((sendPreflight) => { )
.then((sendPreflight) => {
if (sendPreflight && if (sendPreflight &&
sendPreflight.msg === 'success') { sendPreflight.msg === 'success') {
this.setState(Object.assign({}, this.state, { this.setState(Object.assign({}, this.state, {

Loading…
Cancel
Save