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

feature/default_network_editable
frankiebee 7 years ago
parent 4c554f32ec
commit 00bd5b143f
  1. 4
      app/scripts/lib/tx-gas-utils.js
  2. 2
      test/unit/tx-utils-test.js

@ -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.`)

@ -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 () {

Loading…
Cancel
Save