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:
parent
4c554f32ec
commit
00bd5b143f
@ -77,10 +77,6 @@ module.exports = class txProvideUtil {
|
|||||||
return bnToHex(upperGasLimitBn)
|
return bnToHex(upperGasLimitBn)
|
||||||
}
|
}
|
||||||
|
|
||||||
async publishTransaction (rawTx) {
|
|
||||||
return await this.query.sendRawTransaction(rawTx)
|
|
||||||
}
|
|
||||||
|
|
||||||
async validateTxParams (txParams) {
|
async validateTxParams (txParams) {
|
||||||
if (('value' in txParams) && txParams.value.indexOf('-') === 0) {
|
if (('value' in txParams) && txParams.value.indexOf('-') === 0) {
|
||||||
throw new Error(`Invalid transaction value of ${txParams.value} not a positive number.`)
|
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 { 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 () {
|
describe('txUtils', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user