mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
bugfix - transactions controller - breakout logic and fix order of operations bug
This commit is contained in:
parent
2147b8a59a
commit
9a8670309d
@ -180,8 +180,10 @@ module.exports = class TransactionController extends EventEmitter {
|
||||
// ensure value
|
||||
txMeta.gasPriceSpecified = Boolean(txParams.gasPrice)
|
||||
txMeta.nonceSpecified = Boolean(txParams.nonce)
|
||||
const gasPrice = txParams.gasPrice || this.getGasPrice ? this.getGasPrice()
|
||||
: await this.query.gasPrice()
|
||||
let gasPrice = txParams.gasPrice
|
||||
if (!gasPrice) {
|
||||
gasPrice = this.getGasPrice ? this.getGasPrice() : await this.query.gasPrice()
|
||||
}
|
||||
txParams.gasPrice = ethUtil.addHexPrefix(gasPrice.toString(16))
|
||||
txParams.value = txParams.value || '0x0'
|
||||
// set gasLimit
|
||||
|
Loading…
Reference in New Issue
Block a user