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

rename tx-utils.js -> tx-gas-utils.js

This commit is contained in:
frankiebee 2017-09-05 20:33:50 -07:00
parent 4c554f32ec
commit 00bd5b143f
2 changed files with 1 additions and 5 deletions

View File

@ -77,10 +77,6 @@ module.exports = class txProvideUtil {
return bnToHex(upperGasLimitBn)
}
async publishTransaction (rawTx) {
return await this.query.sendRawTransaction(rawTx)
}
async validateTxParams (txParams) {
if (('value' in txParams) && txParams.value.indexOf('-') === 0) {
throw new Error(`Invalid transaction value of ${txParams.value} not a positive number.`)

View File

@ -4,7 +4,7 @@ const BN = require('bn.js')
const { hexToBn, bnToHex } = require('../../app/scripts/lib/util')
const TxUtils = require('../../app/scripts/lib/tx-utils')
const TxUtils = require('../../app/scripts/lib/tx-gas-utils')
describe('txUtils', function () {