1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Lint fixes.

This commit is contained in:
Dan 2017-11-06 16:14:46 -03:30
parent e5391cf9fd
commit 8c6e1232e4
5 changed files with 3 additions and 15 deletions

View File

@ -169,8 +169,7 @@ CustomizeGasModal.prototype.convertAndSetGasLimit = function (newGasLimit) {
} }
CustomizeGasModal.prototype.convertAndSetGasPrice = function (newGasPrice) { CustomizeGasModal.prototype.convertAndSetGasPrice = function (newGasPrice) {
const { gasLimit, priceSigZeros } = this.state const { gasLimit } = this.state
const priceStrLength = newGasPrice.length
const sigZeros = String(newGasPrice).match(/^\d+[.]\d*?(0+)$/) const sigZeros = String(newGasPrice).match(/^\d+[.]\d*?(0+)$/)
const sigDec = String(newGasPrice).match(/^\d+([.])0*$/) const sigDec = String(newGasPrice).match(/^\d+([.])0*$/)

View File

@ -6,7 +6,6 @@ const {
conversionGTE, conversionGTE,
conversionLTE, conversionLTE,
subtractCurrencies, subtractCurrencies,
toNegative,
} = require('../conversion-util') } = require('../conversion-util')
module.exports = InputNumber module.exports = InputNumber

View File

@ -1,6 +1,5 @@
const { const {
addCurrencies, addCurrencies,
conversionGreaterThan,
conversionUtil, conversionUtil,
conversionGTE, conversionGTE,
} = require('../../conversion-util') } = require('../../conversion-util')

View File

@ -149,7 +149,7 @@ const subtractCurrencies = (a, b, options = {}) => {
const { const {
aBase, aBase,
bBase, bBase,
...conversionOptions, ...conversionOptions
} = options } = options
const value = (new BigNumber(a, aBase)).minus(b, bBase); const value = (new BigNumber(a, aBase)).minus(b, bBase);

View File

@ -16,7 +16,6 @@ const {
MIN_GAS_PRICE_HEX, MIN_GAS_PRICE_HEX,
MIN_GAS_LIMIT_HEX, MIN_GAS_LIMIT_HEX,
} = require('./components/send/send-constants') } = require('./components/send/send-constants')
const abi = require('human-standard-token-abi')
const { const {
multiplyCurrencies, multiplyCurrencies,
@ -92,11 +91,10 @@ SendTransactionScreen.prototype.componentWillMount = function () {
selectedAddress, selectedAddress,
data, data,
updateGasTotal, updateGasTotal,
updateSendTokenBalance,
from, from,
tokenContract, tokenContract,
} = this.props } = this.props
const { symbol, decimals } = selectedToken || {} const { symbol } = selectedToken || {}
if (symbol) { if (symbol) {
updateTokenExchangeRate(symbol) updateTokenExchangeRate(symbol)
@ -209,13 +207,9 @@ SendTransactionScreen.prototype.renderErrorMessage = function (errorType) {
SendTransactionScreen.prototype.handleFromChange = async function (newFrom) { SendTransactionScreen.prototype.handleFromChange = async function (newFrom) {
const { const {
from,
updateSendFrom, updateSendFrom,
updateSendTokenBalance,
tokenContract, tokenContract,
selectedToken,
} = this.props } = this.props
const { decimals } = selectedToken || {}
if (tokenContract) { if (tokenContract) {
const usersToken = await tokenContract.balanceOf(newFrom.address) const usersToken = await tokenContract.balanceOf(newFrom.address)
@ -229,9 +223,6 @@ SendTransactionScreen.prototype.renderFromRow = function () {
from, from,
fromAccounts, fromAccounts,
conversionRate, conversionRate,
updateSendFrom,
updateSendTokenBalance,
tokenContract,
} = this.props } = this.props
const { fromDropdownOpen } = this.state const { fromDropdownOpen } = this.state