diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-06 00:58:04 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-06 00:58:04 +0800 |
commit | 15809894ff42bacc3babfb9aaba48389417907c0 (patch) | |
tree | 7d2ba18e60f11528874b34debd396d1a91be819b | |
parent | 35f4148343cf4400f7a38eef07282cae44cd0335 (diff) | |
download | tangerine-wallet-browser-15809894ff42bacc3babfb9aaba48389417907c0.tar.gz tangerine-wallet-browser-15809894ff42bacc3babfb9aaba48389417907c0.tar.zst tangerine-wallet-browser-15809894ff42bacc3babfb9aaba48389417907c0.zip |
Add indicator for specified gas price
-rw-r--r-- | app/scripts/controllers/transactions.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 94e04c429..481dd62a5 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -169,6 +169,7 @@ module.exports = class TransactionController extends EventEmitter { async addTxDefaults (txMeta) { const txParams = txMeta.txParams // ensure value + txMeta.gasPriceSpecified = Boolean(txParams.gasPrice) const gasPrice = txParams.gasPrice || await this.query.gasPrice() txParams.gasPrice = ethUtil.addHexPrefix(gasPrice.toString(16)) txParams.value = txParams.value || '0x0' |