aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-14 10:19:10 +0800
committerDan <danjm.com@gmail.com>2018-03-14 10:19:10 +0800
commitc37684d7bde00adcb4b2e43db16be91978e2ef12 (patch)
treec143882ab12c899c4f1e447834788cbd884afcfb /ui
parente94a14ef8aee8a80a4d21ed8cb1d5b680296eb0b (diff)
downloadtangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.tar
tangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.tar.gz
tangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.tar.bz2
tangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.tar.lz
tangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.tar.xz
tangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.tar.zst
tangerine-wallet-browser-c37684d7bde00adcb4b2e43db16be91978e2ef12.zip
Remove unnecessary addition of nonce to state.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js3
-rw-r--r--ui/app/reducers/metamask.js2
-rw-r--r--ui/app/send-v2.js5
3 files changed, 0 insertions, 10 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index 8fe58482b..f3f7e86c5 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/ui/app/components/pending-tx/confirm-send-ether.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' }))
},
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index b27e7140a..2c93172cc 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -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,
},
})
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 697dfc517..fc1df1f51 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -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)]),