1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

test - tx controller - fix txGasUtil reference

This commit is contained in:
kumavis 2018-01-17 20:09:13 -08:00
parent b70d3a9b6e
commit d7c8ec22a4
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,8 @@ its passed ethquery
and used to do things like calculate gas of a tx. and used to do things like calculate gas of a tx.
*/ */
module.exports = class txProvideUtil { module.exports = class TxGasUtil {
constructor (provider) { constructor (provider) {
this.query = new EthQuery(provider) this.query = new EthQuery(provider)
} }

View File

@ -217,7 +217,7 @@ describe('Transaction Controller', function () {
var sample = { var sample = {
value: '0x01', value: '0x01',
} }
txController.txProviderUtils.validateTxParams(sample).then(() => { txController.txGasUtil.validateTxParams(sample).then(() => {
done() done()
}).catch(done) }).catch(done)
}) })
@ -226,7 +226,7 @@ describe('Transaction Controller', function () {
var sample = { var sample = {
value: '-0x01', value: '-0x01',
} }
txController.txProviderUtils.validateTxParams(sample) txController.txGasUtil.validateTxParams(sample)
.then(() => done('expected to thrown on negativity values but didn\'t')) .then(() => done('expected to thrown on negativity values but didn\'t'))
.catch((err) => { .catch((err) => {
assert.ok(err, 'error') assert.ok(err, 'error')