aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-01-06 14:08:03 +0800
committerDan Finlay <dan@danfinlay.com>2018-01-06 14:08:03 +0800
commitaec24ec81e4785ceea93375d562458f62be69266 (patch)
treed5f98ebc53b4b02f40f1bed110b2bb8e02ad48e4 /app/scripts/controllers
parent447682d1fbb07309c696217fba3839455721d003 (diff)
downloadtangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar
tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.gz
tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.bz2
tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.lz
tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.xz
tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.zst
tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.zip
Fix feature to work
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/transactions.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index be7e7221f..469deb670 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -180,7 +180,8 @@ module.exports = class TransactionController extends EventEmitter {
// ensure value
txMeta.gasPriceSpecified = Boolean(txParams.gasPrice)
txMeta.nonceSpecified = Boolean(txParams.nonce)
- const gasPrice = txParams.gasPrice || this.getGasPrice()
+ const gasPrice = txParams.gasPrice || this.getGasPrice ? this.getGasPrice()
+ : await this.query.gasPrice()
txParams.gasPrice = ethUtil.addHexPrefix(gasPrice.toString(16))
txParams.value = txParams.value || '0x0'
// set gasLimit