mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove unnecessary addition of nonce to state.
This commit is contained in:
parent
e94a14ef8a
commit
c37684d7bd
@ -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…
Reference in New Issue
Block a user