aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/tx-utils.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-03-01 06:08:00 +0800
committerDan Finlay <dan@danfinlay.com>2017-03-01 06:08:00 +0800
commitda88481560f0f2ad7e12b3e94082aa10147b900e (patch)
treed90c02a55451768807babb49ef95519d44f93e1c /app/scripts/lib/tx-utils.js
parent5a74c0fcad92cf4192eefedcb092d4525157902f (diff)
downloadtangerine-wallet-browser-da88481560f0f2ad7e12b3e94082aa10147b900e.tar.gz
tangerine-wallet-browser-da88481560f0f2ad7e12b3e94082aa10147b900e.tar.zst
tangerine-wallet-browser-da88481560f0f2ad7e12b3e94082aa10147b900e.zip
Remove gasMultiplier txMeta param
This was used by the custom gas slider on the `send` screen, and it was used to modify the gas value before sending it out, breaking our new custom gas field logic. Removed it and the logic that referred to this now-outdated parameter.
Diffstat (limited to 'app/scripts/lib/tx-utils.js')
-rw-r--r--app/scripts/lib/tx-utils.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/scripts/lib/tx-utils.js b/app/scripts/lib/tx-utils.js
index b152effcc..19a2d430e 100644
--- a/app/scripts/lib/tx-utils.js
+++ b/app/scripts/lib/tx-utils.js
@@ -92,11 +92,10 @@ module.exports = class txProviderUtils {
}
// builds ethTx from txParams object
- buildEthTxFromParams (txParams, gasMultiplier = 1) {
+ buildEthTxFromParams (txParams) {
// apply gas multiplyer
let gasPrice = new BN(ethUtil.stripHexPrefix(txParams.gasPrice), 16)
// multiply and divide by 100 so as to add percision to integer mul
- gasPrice = gasPrice.mul(new BN(gasMultiplier * 100, 10)).div(new BN(100, 10))
txParams.gasPrice = ethUtil.intToHex(gasPrice.toNumber())
// normalize values
txParams.to = normalize(txParams.to)