diff options
Diffstat (limited to 'ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js')
-rw-r--r-- | ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js b/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js index b32928b75..96a6de424 100644 --- a/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js +++ b/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js @@ -27,10 +27,13 @@ import { } from '../../../../ducks/send.duck' import { resetCustomData, + setCustomGasPrice, + setCustomGasLimit, } from '../../../../ducks/gas.duck' import { getGasLoadingError, gasFeeIsInError, getGasButtonGroupShown } from './send-gas-row.selectors.js' import { showModal, setGasPrice, setGasLimit, setGasTotal } from '../../../../actions' import { getAdvancedInlineGasShown, getCurrentEthBalance } from '../../../../selectors' +import { addHexPrefix } from 'ethereumjs-util' import SendGasRow from './send-gas-row.component' export default connect(mapStateToProps, mapDispatchToProps, mergeProps)(SendGasRow) @@ -79,11 +82,13 @@ function mapDispatchToProps (dispatch) { setGasPrice: (newPrice, gasLimit) => { newPrice = decGWEIToHexWEI(newPrice) dispatch(setGasPrice(newPrice)) + dispatch(setCustomGasPrice(addHexPrefix(newPrice))) dispatch(setGasTotal(calcGasTotal(gasLimit, newPrice))) }, setGasLimit: (newLimit, gasPrice) => { newLimit = decimalToHex(newLimit) dispatch(setGasLimit(newLimit)) + dispatch(setCustomGasLimit(addHexPrefix(newLimit.toString(16)))) dispatch(setGasTotal(calcGasTotal(newLimit, gasPrice))) }, showGasButtonGroup: () => dispatch(showGasButtonGroup()), |