aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/tx-utils.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-05-19 05:54:02 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-05-19 06:14:10 +0800
commitf87ea49b5ac2d66d8f281f08f42e8cfd2d701ba7 (patch)
tree349903e455ddeccb64b913b12c950e5f5548d046 /app/scripts/lib/tx-utils.js
parent03d454f73baa27f9b44ec4bee0ba8f3c71414aa6 (diff)
downloadtangerine-wallet-browser-f87ea49b5ac2d66d8f281f08f42e8cfd2d701ba7.tar.gz
tangerine-wallet-browser-f87ea49b5ac2d66d8f281f08f42e8cfd2d701ba7.tar.zst
tangerine-wallet-browser-f87ea49b5ac2d66d8f281f08f42e8cfd2d701ba7.zip
Create a network controller to manage switcing networks an updating the provider
Diffstat (limited to 'app/scripts/lib/tx-utils.js')
-rw-r--r--app/scripts/lib/tx-utils.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/scripts/lib/tx-utils.js b/app/scripts/lib/tx-utils.js
index 084ca3721..76b311653 100644
--- a/app/scripts/lib/tx-utils.js
+++ b/app/scripts/lib/tx-utils.js
@@ -1,5 +1,4 @@
const async = require('async')
-const EthQuery = require('eth-query')
const ethUtil = require('ethereumjs-util')
const Transaction = require('ethereumjs-tx')
const normalize = require('eth-sig-util').normalize
@@ -7,15 +6,14 @@ const BN = ethUtil.BN
/*
tx-utils are utility methods for Transaction manager
-its passed a provider and that is passed to ethquery
+its passed ethquery
and used to do things like calculate gas of a tx.
*/
module.exports = class txProviderUtils {
- constructor (provider) {
- this.provider = provider
- this.query = new EthQuery(provider)
+ constructor (ethQuery) {
+ this.query = ethQuery
}
analyzeGasUsage (txMeta, cb) {