diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-10-28 05:01:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-28 05:01:08 +0800 |
commit | e0030a8bf84c01184eaf251f6ef6a4b61bac2a01 (patch) | |
tree | 6da179197781b1a9f2d7bead58720dc01fc5c863 /app | |
parent | 4ac198eebcf2ed8d57ecb8f1a67d36d448e5a4c3 (diff) | |
parent | 15809894ff42bacc3babfb9aaba48389417907c0 (diff) | |
download | tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.tar tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.tar.gz tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.tar.bz2 tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.tar.lz tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.tar.xz tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.tar.zst tangerine-wallet-browser-e0030a8bf84c01184eaf251f6ef6a4b61bac2a01.zip |
Merge pull request #2291 from MetaMask/gasPriceSpecified
Add boolean for specified gas price
Diffstat (limited to 'app')
-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 ef659a300..d5fde033b 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -170,6 +170,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' |