aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-26 04:21:42 +0800
committerkumavis <aaron@kumavis.me>2018-05-26 04:21:42 +0800
commit61ef4f1f29169c553b6a8fc36803e6f7596fc9ad (patch)
tree34abadbcc880d86ecd9cf5d183727b218bffb72f /app/scripts/controllers
parenta0fe5b9190a4991c93ba99dd7e65d154b80b4702 (diff)
downloadtangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.tar
tangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.tar.gz
tangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.tar.bz2
tangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.tar.lz
tangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.tar.xz
tangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.tar.zst
tangerine-wallet-browser-61ef4f1f29169c553b6a8fc36803e6f7596fc9ad.zip
tx-gas-utils - query for block without tx bodies
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/transactions/tx-gas-utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/transactions/tx-gas-utils.js b/app/scripts/controllers/transactions/tx-gas-utils.js
index 36b5cdbc9..9bf2ae1e2 100644
--- a/app/scripts/controllers/transactions/tx-gas-utils.js
+++ b/app/scripts/controllers/transactions/tx-gas-utils.js
@@ -25,7 +25,7 @@ class TxGasUtil {
@returns {object} the txMeta object with the gas written to the txParams
*/
async analyzeGasUsage (txMeta) {
- const block = await this.query.getBlockByNumber('latest', true)
+ const block = await this.query.getBlockByNumber('latest', false)
let estimatedGasHex
try {
estimatedGasHex = await this.estimateTxGas(txMeta, block.gasLimit)
@@ -126,4 +126,4 @@ class TxGasUtil {
}
}
-module.exports = TxGasUtil \ No newline at end of file
+module.exports = TxGasUtil