mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix more lint errors.
This commit is contained in:
parent
c37684d7bd
commit
cc267d6c81
@ -66,7 +66,6 @@ function mapDispatchToProps (dispatch) {
|
|||||||
const { gas: txGasLimit, gasPrice: txGasPrice } = txParams
|
const { gas: txGasLimit, gasPrice: txGasPrice } = txParams
|
||||||
|
|
||||||
let forceGasMin
|
let forceGasMin
|
||||||
let nonce
|
|
||||||
if (lastGasPrice) {
|
if (lastGasPrice) {
|
||||||
const stripped = ethUtil.stripHexPrefix(lastGasPrice)
|
const stripped = ethUtil.stripHexPrefix(lastGasPrice)
|
||||||
forceGasMin = ethUtil.addHexPrefix(multiplyCurrencies(stripped, 1.1, {
|
forceGasMin = ethUtil.addHexPrefix(multiplyCurrencies(stripped, 1.1, {
|
||||||
|
@ -102,7 +102,6 @@ function mapDispatchToProps (dispatch, ownProps) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
let forceGasMin
|
let forceGasMin
|
||||||
let nonce
|
|
||||||
if (lastGasPrice) {
|
if (lastGasPrice) {
|
||||||
const stripped = ethUtil.stripHexPrefix(lastGasPrice)
|
const stripped = ethUtil.stripHexPrefix(lastGasPrice)
|
||||||
forceGasMin = ethUtil.addHexPrefix(multiplyCurrencies(stripped, 1.1, {
|
forceGasMin = ethUtil.addHexPrefix(multiplyCurrencies(stripped, 1.1, {
|
||||||
@ -278,19 +277,13 @@ ConfirmSendToken.prototype.renderHeroAmount = function () {
|
|||||||
|
|
||||||
ConfirmSendToken.prototype.renderGasFee = function () {
|
ConfirmSendToken.prototype.renderGasFee = function () {
|
||||||
const {
|
const {
|
||||||
token: { symbol },
|
|
||||||
currentCurrency: convertedCurrency,
|
currentCurrency: convertedCurrency,
|
||||||
conversionRate,
|
conversionRate,
|
||||||
send: { gasTotal, gasLimit: sendGasLimit, gasPrice: sendGasPrice },
|
send: { gasTotal, gasLimit: sendGasLimit, gasPrice: sendGasPrice },
|
||||||
showCustomizeGasModal,
|
showCustomizeGasModal,
|
||||||
} = this.props
|
} = this.props
|
||||||
const txMeta = this.gatherTxMeta()
|
const txMeta = this.gatherTxMeta()
|
||||||
const {
|
const { gasFeeInHex } = this.getGasFee()
|
||||||
fiat: fiatGas,
|
|
||||||
token: tokenGas,
|
|
||||||
eth: ethGas,
|
|
||||||
gasFeeInHex
|
|
||||||
} = this.getGasFee()
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
h('section.flex-row.flex-center.confirm-screen-row', [
|
h('section.flex-row.flex-center.confirm-screen-row', [
|
||||||
|
@ -55,7 +55,7 @@ TxListItem.prototype.componentDidMount = async function () {
|
|||||||
? await this.getSendTokenTotal()
|
? await this.getSendTokenTotal()
|
||||||
: this.getSendEtherTotal()
|
: this.getSendEtherTotal()
|
||||||
|
|
||||||
this.setState({ total, fiatTotal, isTokenTx })
|
this.setState({ total, fiatTotal, isTokenTx })
|
||||||
}
|
}
|
||||||
|
|
||||||
TxListItem.prototype.getAddressText = function () {
|
TxListItem.prototype.getAddressText = function () {
|
||||||
@ -180,7 +180,6 @@ TxListItem.prototype.getSendTokenTotal = async function () {
|
|||||||
|
|
||||||
TxListItem.prototype.showRetryButton = function () {
|
TxListItem.prototype.showRetryButton = function () {
|
||||||
const {
|
const {
|
||||||
transactionStatus,
|
|
||||||
transactionSubmittedTime,
|
transactionSubmittedTime,
|
||||||
selectedAddressTxList,
|
selectedAddressTxList,
|
||||||
transactionId,
|
transactionId,
|
||||||
|
Loading…
Reference in New Issue
Block a user