Add indicator for specified gas price

feature/default_network_editable
Kevin Serrano 7 years ago
parent 35f4148343
commit 15809894ff
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 1
      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'

Loading…
Cancel
Save