aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-03-29 04:56:35 +0800
committerkumavis <aaron@kumavis.me>2017-03-29 04:56:35 +0800
commite864623d3cfc70ff10ef1b84d5853dc7aa50fa36 (patch)
tree12fbcf2fe2c11085d2c8848ce3af13c389f26fd4 /app
parent1495240969f8b4931259f487c3eb75aca36c68d7 (diff)
downloadtangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.tar
tangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.tar.gz
tangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.tar.bz2
tangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.tar.lz
tangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.tar.xz
tangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.tar.zst
tangerine-wallet-browser-e864623d3cfc70ff10ef1b84d5853dc7aa50fa36.zip
tx manager - add eth-query
Diffstat (limited to 'app')
-rw-r--r--app/scripts/transaction-manager.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/transaction-manager.js b/app/scripts/transaction-manager.js
index 571fb8ae0..690d44808 100644
--- a/app/scripts/transaction-manager.js
+++ b/app/scripts/transaction-manager.js
@@ -4,6 +4,7 @@ const extend = require('xtend')
const Semaphore = require('semaphore')
const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
+const EthQuery = require('eth-query')
const TxProviderUtil = require('./lib/tx-utils')
const createId = require('./lib/random-id')
@@ -19,6 +20,7 @@ module.exports = class TransactionManager extends EventEmitter {
this.txHistoryLimit = opts.txHistoryLimit
this.provider = opts.provider
this.blockTracker = opts.blockTracker
+ this.query = new EthQuery(this.provider)
this.txProviderUtils = new TxProviderUtil(this.provider)
this.blockTracker.on('block', this.checkForTxInBlock.bind(this))
this.signEthTx = opts.signTransaction
@@ -329,7 +331,7 @@ module.exports = class TransactionManager extends EventEmitter {
}
return this.setTxStatusFailed(txId, errReason)
}
- this.txProviderUtils.query.getTransactionByHash(txHash, (err, txParams) => {
+ this.query.getTransactionByHash(txHash, (err, txParams) => {
if (err || !txParams) {
if (!txParams) return
txMeta.err = {