aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-10 08:29:24 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-10 08:29:24 +0800
commitb6b4be61d9f01f309b8f4ce708fa1220f84a5d8f (patch)
treeebd0d59ab303c9f2268556e48a797dc156979836 /app/scripts/lib
parent14a833f5c02c1ee972e5186920d2f22e49eeb239 (diff)
downloadtangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.tar
tangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.tar.gz
tangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.tar.bz2
tangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.tar.lz
tangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.tar.xz
tangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.tar.zst
tangerine-wallet-browser-b6b4be61d9f01f309b8f4ce708fa1220f84a5d8f.zip
Fix bug for increasing gas by 20 percent.
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/idStore.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 0ce91f471..1d66ee368 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -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()
})
}