aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/app/components/customize-gas-modal/index.js3
-rw-r--r--ui/app/components/input-number.js1
-rw-r--r--ui/app/components/send/send-utils.js1
-rw-r--r--ui/app/conversion-util.js2
-rw-r--r--ui/app/send-v2.js11
5 files changed, 3 insertions, 15 deletions
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js
index dcb058690..b77e1990f 100644
--- a/ui/app/components/customize-gas-modal/index.js
+++ b/ui/app/components/customize-gas-modal/index.js
@@ -169,8 +169,7 @@ CustomizeGasModal.prototype.convertAndSetGasLimit = function (newGasLimit) {
}
CustomizeGasModal.prototype.convertAndSetGasPrice = function (newGasPrice) {
- const { gasLimit, priceSigZeros } = this.state
- const priceStrLength = newGasPrice.length
+ const { gasLimit } = this.state
const sigZeros = String(newGasPrice).match(/^\d+[.]\d*?(0+)$/)
const sigDec = String(newGasPrice).match(/^\d+([.])0*$/)
diff --git a/ui/app/components/input-number.js b/ui/app/components/input-number.js
index da4d739aa..12dec2957 100644
--- a/ui/app/components/input-number.js
+++ b/ui/app/components/input-number.js
@@ -6,7 +6,6 @@ const {
conversionGTE,
conversionLTE,
subtractCurrencies,
- toNegative,
} = require('../conversion-util')
module.exports = InputNumber
diff --git a/ui/app/components/send/send-utils.js b/ui/app/components/send/send-utils.js
index 0260c38a6..bd1197950 100644
--- a/ui/app/components/send/send-utils.js
+++ b/ui/app/components/send/send-utils.js
@@ -1,6 +1,5 @@
const {
addCurrencies,
- conversionGreaterThan,
conversionUtil,
conversionGTE,
} = require('../../conversion-util')
diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js
index ee831262b..ee2950071 100644
--- a/ui/app/conversion-util.js
+++ b/ui/app/conversion-util.js
@@ -149,7 +149,7 @@ const subtractCurrencies = (a, b, options = {}) => {
const {
aBase,
bBase,
- ...conversionOptions,
+ ...conversionOptions
} = options
const value = (new BigNumber(a, aBase)).minus(b, bBase);
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 951af3d2c..bb4c592e8 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -16,7 +16,6 @@ const {
MIN_GAS_PRICE_HEX,
MIN_GAS_LIMIT_HEX,
} = require('./components/send/send-constants')
-const abi = require('human-standard-token-abi')
const {
multiplyCurrencies,
@@ -92,11 +91,10 @@ SendTransactionScreen.prototype.componentWillMount = function () {
selectedAddress,
data,
updateGasTotal,
- updateSendTokenBalance,
from,
tokenContract,
} = this.props
- const { symbol, decimals } = selectedToken || {}
+ const { symbol } = selectedToken || {}
if (symbol) {
updateTokenExchangeRate(symbol)
@@ -209,13 +207,9 @@ SendTransactionScreen.prototype.renderErrorMessage = function (errorType) {
SendTransactionScreen.prototype.handleFromChange = async function (newFrom) {
const {
- from,
updateSendFrom,
- updateSendTokenBalance,
tokenContract,
- selectedToken,
} = this.props
- const { decimals } = selectedToken || {}
if (tokenContract) {
const usersToken = await tokenContract.balanceOf(newFrom.address)
@@ -229,9 +223,6 @@ SendTransactionScreen.prototype.renderFromRow = function () {
from,
fromAccounts,
conversionRate,
- updateSendFrom,
- updateSendTokenBalance,
- tokenContract,
} = this.props
const { fromDropdownOpen } = this.state