diff --git a/app/components/UI/CustomGas/index.js b/app/components/UI/CustomGas/index.js index a62129de3e1..a5768d0d55e 100644 --- a/app/components/UI/CustomGas/index.js +++ b/app/components/UI/CustomGas/index.js @@ -449,8 +449,7 @@ class CustomGas extends PureComponent { let warningGasLimit; if (!value || value === '' || !isDecimal(value)) warningGasLimit = strings('transaction.invalid_gas'); else if (bnValue && !isBN(bnValue)) warningGasLimit = strings('transaction.invalid_gas'); - else if (bnValue.lt(new BN(21000)) || bnValue.gt(new BN(7920028))) - warningGasLimit = strings('custom_gas.warning_gas_limit'); + else if (bnValue.lt(new BN(21000))) warningGasLimit = strings('custom_gas.warning_gas_limit'); else if (this.props.minimumGasLimit && bnValue.lt(new BN(this.props.minimumGasLimit))) warningGasLimit = strings('custom_gas.warning_gas_limit_estimated', { gas: this.props.minimumGasLimit.toString(10) diff --git a/app/components/UI/TransactionEditor/index.js b/app/components/UI/TransactionEditor/index.js index 083240bcac9..47510c9261d 100644 --- a/app/components/UI/TransactionEditor/index.js +++ b/app/components/UI/TransactionEditor/index.js @@ -488,7 +488,7 @@ class TransactionEditor extends PureComponent { if (gas && !isBN(gas)) return strings('transaction.invalid_gas'); if (!gasPrice) return strings('transaction.invalid_gas_price'); if (gasPrice && !isBN(gasPrice)) return strings('transaction.invalid_gas_price'); - if (gas.lt(new BN(21000)) || gas.gt(new BN(7920028))) return strings('custom_gas.warning_gas_limit'); + if (gas.lt(new BN(21000))) return strings('custom_gas.warning_gas_limit'); const checksummedFrom = safeToChecksumAddress(from) || ''; const fromAccount = this.props.accounts[checksummedFrom]; diff --git a/locales/languages/en.json b/locales/languages/en.json index 3a46d915ad4..a5972132e6f 100644 --- a/locales/languages/en.json +++ b/locales/languages/en.json @@ -708,7 +708,7 @@ "gas_limit": "Gas Limit:", "gas_price": "Gas Price: (GWEI)", "save": "Save", - "warning_gas_limit": "Gas limit must be greater than 20999 and less than 7920027", + "warning_gas_limit": "Gas limit must be greater than 20999", "warning_gas_limit_estimated": "Estimated gas limit is {{gas}}, use it as minimum value", "cost_explanation": "The gas fee covers the cost of processing your transaction on the Ethereum network. MetaMask does not profit from this fee. The higher the fee the better chances of your transaction getting processed." },