aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-05-25 07:18:37 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-05-25 07:18:37 +0800
commit51b5e2f6e74a91198816afee8ddaf468ab7ab583 (patch)
treedb505bd8192c2a122ce4634d8cf2cb01decaa108 /ui
parent26fd016b63c4f3a15436d08dff9e94f72d2b4041 (diff)
downloadtangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.tar
tangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.tar.gz
tangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.tar.bz2
tangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.tar.lz
tangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.tar.xz
tangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.tar.zst
tangerine-wallet-browser-51b5e2f6e74a91198816afee8ddaf468ab7ab583.zip
Add max gas limit to UI
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pending-tx.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index d66d98dd5..b46f715bc 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -47,6 +47,7 @@ PendingTx.prototype.render = function () {
// Gas
const gas = txParams.gas
const gasBn = hexToBn(gas)
+ const safeGasLimit = parseInt(txMeta.blockGasLimit)
// Gas Price
const gasPrice = txParams.gasPrice || MIN_GAS_PRICE_BN.toString(16)
@@ -159,6 +160,7 @@ PendingTx.prototype.render = function () {
scale: 0,
// The hard lower limit for gas.
min: MIN_GAS_LIMIT_BN.toString(10),
+ max: safeGasLimit,
suffix: 'UNITS',
style: {
position: 'relative',