diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-05-25 00:55:32 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-05-25 00:55:32 +0800 |
commit | 45285a5a2f0776787bd1e7ecd9b49c5d5456cd06 (patch) | |
tree | b7cc0da01f95478a943fe074870277fcc76d5b88 /app/scripts/lib/tx-utils.js | |
parent | 60281f72506c6b1775e75e8426a09d91893ab6ac (diff) | |
parent | d06a812004a5acc0a26fcdd5c29254b17fca25a0 (diff) | |
download | tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.tar tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.tar.gz tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.tar.bz2 tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.tar.lz tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.tar.xz tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.tar.zst tangerine-wallet-browser-45285a5a2f0776787bd1e7ecd9b49c5d5456cd06.zip |
Merge branch 'master' into i1412-decimalizethegas
Diffstat (limited to 'app/scripts/lib/tx-utils.js')
-rw-r--r-- | app/scripts/lib/tx-utils.js | 8 |
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) { |