mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Fix bug for increasing gas by 20 percent.
This commit is contained in:
parent
14a833f5c0
commit
b6b4be61d9
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
## Current Master
|
||||
- Fix bug where 20% of gas estimate was not being added properly.
|
||||
|
||||
## 2.13.7 2016-11-8
|
||||
|
||||
|
@ -262,6 +262,8 @@ IdentityStore.prototype.addUnconfirmedTransaction = function (txParams, onTxDone
|
||||
query.estimateGas(txParams, function(err, result){
|
||||
if (err) return cb(err)
|
||||
txData.estimatedGas = self.addGasBuffer(result)
|
||||
txData.txParams.gas = txData.estimatedGas
|
||||
txData.txParams.gasLimit = txData.estimatedGas
|
||||
cb()
|
||||
})
|
||||
}
|
||||
|
@ -215,7 +215,6 @@ module.exports = class MetamaskController {
|
||||
|
||||
let err = this.enforceTxValidations(txParams)
|
||||
if (err) return onTxDoneCb(err)
|
||||
|
||||
idStore.addUnconfirmedTransaction(txParams, onTxDoneCb, (err, txData) => {
|
||||
if (err) return onTxDoneCb(err)
|
||||
this.sendUpdate()
|
||||
|
Loading…
Reference in New Issue
Block a user