aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-08 07:38:25 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-08 07:38:25 +0800
commit161ff62fdcf6f76f7243a1e865dd0cccbc89121f (patch)
tree68a593b7cf57f2d42a859b09439362b5b4697355 /app
parent93c0a6826aa70fa14874579b1009bee7248a7c51 (diff)
parent62a15fc59e4e79a162867ae95e619d1ad22911ec (diff)
downloadtangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.tar
tangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.tar.gz
tangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.tar.bz2
tangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.tar.lz
tangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.tar.xz
tangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.tar.zst
tangerine-wallet-browser-161ff62fdcf6f76f7243a1e865dd0cccbc89121f.zip
Merge branch 'master' into i328-MultiVault
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/idStore.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index c566907b9..ef2416cdf 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -285,11 +285,11 @@ IdentityStore.prototype.checkForDelegateCall = function (codeHex) {
}
}
-IdentityStore.prototype.addGasBuffer = function (gasHex) {
- var gas = new BN(gasHex, 16)
- var buffer = new BN('100000', 10)
- var result = gas.add(buffer)
- return ethUtil.addHexPrefix(result.toString(16))
+const gasBuffer = new BN('100000', 10)
+IdentityStore.prototype.addGasBuffer = function (gas) {
+ const bnGas = new BN(ethUtil.stripHexPrefix(gas), 16)
+ const correct = bnGas.add(gasBuffer)
+ return ethUtil.addHexPrefix(correct.toString(16))
}
// comes from metamask ui