Remove unnecessary addition of nonce to state.

feature/default_network_editable
Dan 7 years ago
parent e94a14ef8a
commit c37684d7bd
  1. 3
      ui/app/components/pending-tx/confirm-send-ether.js
  2. 2
      ui/app/reducers/metamask.js
  3. 5
      ui/app/send-v2.js

@ -76,8 +76,6 @@ function mapDispatchToProps (dispatch) {
fromDenomination: 'WEI',
toDenomination: 'GWEI',
}))
nonce = txParams.nonce
}
dispatch(actions.updateSend({
@ -86,7 +84,6 @@ function mapDispatchToProps (dispatch) {
editingTransactionId: id,
gasTotal: sendGasTotal,
forceGasMin,
nonce,
}))
dispatch(actions.showModal({ name: 'CUSTOMIZE_GAS' }))
},

@ -39,7 +39,6 @@ function reduceMetamask (state, action) {
maxModeOn: false,
editingTransactionId: null,
forceGasMin: null,
nonce: null,
},
coinOptions: {},
useBlockie: false,
@ -299,7 +298,6 @@ function reduceMetamask (state, action) {
errors: {},
editingTransactionId: null,
forceGasMin: null,
nonce: null,
},
})

@ -548,7 +548,6 @@ SendTransactionScreen.prototype.getEditedTx = function () {
selectedToken,
editingTransactionId,
unapprovedTxs,
nonce,
} = this.props
const editingTx = {
@ -560,10 +559,6 @@ SendTransactionScreen.prototype.getEditedTx = function () {
},
}
if (nonce) {
editingTx.txParams.nonce = ethUtil.addHexPrefix(nonce)
}
if (selectedToken) {
const data = TOKEN_TRANSFER_FUNCTION_SIGNATURE + Array.prototype.map.call(
ethAbi.rawEncode(['address', 'uint256'], [to, ethUtil.addHexPrefix(amount)]),

Loading…
Cancel
Save