diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-01-17 03:05:11 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-01-17 03:05:11 +0800 |
commit | 8fb62b97c5b0901c7e4402d49538db87396c8579 (patch) | |
tree | 7d30ed90c4e7ce2364e4d04a69352dc7cca3b557 /app/scripts | |
parent | 6cfaf03b3d44bf2be5c4e3c2c84ca2181b2aefcc (diff) | |
download | tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.tar tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.tar.gz tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.tar.bz2 tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.tar.lz tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.tar.xz tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.tar.zst tangerine-wallet-browser-8fb62b97c5b0901c7e4402d49538db87396c8579.zip |
Create new flag for simple sends to avoid overloading other flag
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/lib/tx-gas-utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/tx-gas-utils.js b/app/scripts/lib/tx-gas-utils.js index d57c70b10..e80e0467e 100644 --- a/app/scripts/lib/tx-gas-utils.js +++ b/app/scripts/lib/tx-gas-utils.js @@ -53,7 +53,7 @@ module.exports = class txProvideUtil { const code = await this.query.getCode(recipient) if (hasRecipient && (!code || code === '0x')) { txParams.gas = SIMPLE_GAS_COST - txMeta.gasLimitSpecified = true // Prevents buffer addition + txMeta.simpleSend = true // Prevents buffer addition return SIMPLE_GAS_COST } @@ -72,7 +72,7 @@ module.exports = class txProvideUtil { // if gasLimit was specified and doesnt OOG, // use original specified amount - if (txMeta.gasLimitSpecified) { + if (txMeta.gasLimitSpecified || txMeta.simpleSend) { txMeta.estimatedGas = txParams.gas return } |