aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-01-18 12:09:13 +0800
committerkumavis <aaron@kumavis.me>2018-01-18 12:09:13 +0800
commitd7c8ec22a45a704036c4969496ef293c524f4542 (patch)
tree3c3d6d426eef0b3ce1404f7d8354e8e0601aa336
parentb70d3a9b6ef85384337e92105ab383de3c9b85c0 (diff)
downloadtangerine-wallet-browser-d7c8ec22a45a704036c4969496ef293c524f4542.tar.gz
tangerine-wallet-browser-d7c8ec22a45a704036c4969496ef293c524f4542.tar.zst
tangerine-wallet-browser-d7c8ec22a45a704036c4969496ef293c524f4542.zip
test - tx controller - fix txGasUtil reference
-rw-r--r--app/scripts/lib/tx-gas-utils.js3
-rw-r--r--test/unit/tx-controller-test.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/app/scripts/lib/tx-gas-utils.js b/app/scripts/lib/tx-gas-utils.js
index e80e0467e..f68f3a9e2 100644
--- a/app/scripts/lib/tx-gas-utils.js
+++ b/app/scripts/lib/tx-gas-utils.js
@@ -12,7 +12,8 @@ its passed ethquery
and used to do things like calculate gas of a tx.
*/
-module.exports = class txProvideUtil {
+module.exports = class TxGasUtil {
+
constructor (provider) {
this.query = new EthQuery(provider)
}
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index d0f101e44..84094e00a 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -217,7 +217,7 @@ describe('Transaction Controller', function () {
var sample = {
value: '0x01',
}
- txController.txProviderUtils.validateTxParams(sample).then(() => {
+ txController.txGasUtil.validateTxParams(sample).then(() => {
done()
}).catch(done)
})
@@ -226,7 +226,7 @@ describe('Transaction Controller', function () {
var sample = {
value: '-0x01',
}
- txController.txProviderUtils.validateTxParams(sample)
+ txController.txGasUtil.validateTxParams(sample)
.then(() => done('expected to thrown on negativity values but didn\'t'))
.catch((err) => {
assert.ok(err, 'error')