mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Reduce minimum gas price to 100 MWEI
Also now representing gas price in MWEI, because our current bn inputs actually aren't tolerant of minimums less than 1 unit.
This commit is contained in:
parent
ae56b865e8
commit
35ca7e83bd
@ -3,6 +3,7 @@
|
||||
## Current Master
|
||||
|
||||
- Add support for alternative ENS TLDs (Ethereum Name Service Top-Level Domains).
|
||||
- Lower minimum gas price to 0.1 GWEI, now shown as 100 MWEI.
|
||||
|
||||
## 3.11.2 2017-10-21
|
||||
|
||||
|
@ -15,9 +15,9 @@ const addressSummary = util.addressSummary
|
||||
const nameForAddress = require('../../lib/contract-namer')
|
||||
const BNInput = require('./bn-as-decimal-input')
|
||||
|
||||
const MIN_GAS_PRICE_GWEI_BN = new BN(1)
|
||||
const GWEI_FACTOR = new BN(1e9)
|
||||
const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_GWEI_BN.mul(GWEI_FACTOR)
|
||||
const MIN_GAS_PRICE_MWEI_BN = new BN('100')
|
||||
const MWEI_FACTOR = new BN(1e6)
|
||||
const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_MWEI_BN.mul(MWEI_FACTOR)
|
||||
const MIN_GAS_LIMIT_BN = new BN(21000)
|
||||
|
||||
module.exports = PendingTx
|
||||
@ -197,10 +197,10 @@ PendingTx.prototype.render = function () {
|
||||
h(BNInput, {
|
||||
name: 'Gas Price',
|
||||
value: gasPriceBn,
|
||||
precision: 9,
|
||||
scale: 9,
|
||||
suffix: 'GWEI',
|
||||
min: MIN_GAS_PRICE_GWEI_BN.toString(10),
|
||||
precision: 6,
|
||||
scale: 6,
|
||||
suffix: 'MWEI',
|
||||
min: MIN_GAS_PRICE_MWEI_BN.toString(10),
|
||||
style: {
|
||||
position: 'relative',
|
||||
top: '5px',
|
||||
|
4491
ui/app/css/output/index.css
Normal file
4491
ui/app/css/output/index.css
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user