|
|
|
@ -65,9 +65,9 @@ function mapStateToProps (state) { |
|
|
|
|
function mapDispatchToProps (dispatch) { |
|
|
|
|
return { |
|
|
|
|
hideModal: () => dispatch(actions.hideModal()), |
|
|
|
|
updateGasPrice: newGasPrice => dispatch(actions.updateGasPrice(newGasPrice)), |
|
|
|
|
updateGasLimit: newGasLimit => dispatch(actions.updateGasLimit(newGasLimit)), |
|
|
|
|
updateGasTotal: newGasTotal => dispatch(actions.setGasTotal(newGasTotal)), |
|
|
|
|
setGasPrice: newGasPrice => dispatch(actions.setGasPrice(newGasPrice)), |
|
|
|
|
setGasLimit: newGasLimit => dispatch(actions.setGasLimit(newGasLimit)), |
|
|
|
|
updateGasData: newGasTotal => dispatch(actions.setGasTotal(newGasTotal)), |
|
|
|
|
updateSendAmount: newAmount => dispatch(actions.updateSendAmount(newAmount)), |
|
|
|
|
updateSendErrors: error => dispatch(updateSendErrors(error)), |
|
|
|
|
} |
|
|
|
@ -109,10 +109,10 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(CustomizeGasModal) |
|
|
|
|
|
|
|
|
|
CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) { |
|
|
|
|
const { |
|
|
|
|
updateGasPrice, |
|
|
|
|
updateGasLimit, |
|
|
|
|
setGasPrice, |
|
|
|
|
setGasLimit, |
|
|
|
|
hideModal, |
|
|
|
|
updateGasTotal, |
|
|
|
|
updateGasData, |
|
|
|
|
maxModeOn, |
|
|
|
|
selectedToken, |
|
|
|
|
balance, |
|
|
|
@ -129,9 +129,9 @@ CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) { |
|
|
|
|
updateSendAmount(maxAmount) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateGasPrice(ethUtil.addHexPrefix(gasPrice)) |
|
|
|
|
updateGasLimit(ethUtil.addHexPrefix(gasLimit)) |
|
|
|
|
updateGasTotal(ethUtil.addHexPrefix(gasTotal)) |
|
|
|
|
setGasPrice(ethUtil.addHexPrefix(gasPrice)) |
|
|
|
|
setGasLimit(ethUtil.addHexPrefix(gasLimit)) |
|
|
|
|
updateGasData(ethUtil.addHexPrefix(gasTotal)) |
|
|
|
|
updateSendErrors({ insufficientFunds: false }) |
|
|
|
|
hideModal() |
|
|
|
|
} |
|
|
|
|