aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-11-09 00:49:43 +0800
committerGitHub <noreply@github.com>2016-11-09 00:49:43 +0800
commit2160eb35aa49d80b1cb9217a6597c238c88d2ff7 (patch)
tree4bbd6d42cddb5c3fafc32dbbb2024d60408473ec /app
parent62a15fc59e4e79a162867ae95e619d1ad22911ec (diff)
parent7068d2e71c6d1ddb68095916dc16f3ff1f283590 (diff)
downloadtangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.tar
tangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.tar.gz
tangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.tar.bz2
tangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.tar.lz
tangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.tar.xz
tangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.tar.zst
tangerine-wallet-browser-2160eb35aa49d80b1cb9217a6597c238c88d2ff7.zip
Merge pull request #796 from MetaMask/IncreaseGasBuffer
Increase gas buffer
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/idStore.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 1010a5789..0ce91f471 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -287,9 +287,10 @@ IdentityStore.prototype.checkForDelegateCall = function (codeHex) {
}
}
-const gasBuffer = new BN('100000', 10)
IdentityStore.prototype.addGasBuffer = function (gas) {
const bnGas = new BN(ethUtil.stripHexPrefix(gas), 16)
+ const five = new BN('5', 10)
+ const gasBuffer = bnGas.div(five)
const correct = bnGas.add(gasBuffer)
return ethUtil.addHexPrefix(correct.toString(16))
}