aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-09-06 11:33:50 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-09-06 11:33:50 +0800
commit00bd5b143ffc13ac0a48f2049f61f26082af12c8 (patch)
tree2f30cd2af81d0a79dba403fe3d0241f50f907bca
parent4c554f32eca5ceda2d525b967075ec2b6ff41809 (diff)
downloadtangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.tar
tangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.tar.gz
tangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.tar.bz2
tangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.tar.lz
tangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.tar.xz
tangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.tar.zst
tangerine-wallet-browser-00bd5b143ffc13ac0a48f2049f61f26082af12c8.zip
rename tx-utils.js -> tx-gas-utils.js
-rw-r--r--app/scripts/lib/tx-gas-utils.js (renamed from app/scripts/lib/tx-utils.js)4
-rw-r--r--test/unit/tx-utils-test.js2
2 files changed, 1 insertions, 5 deletions
diff --git a/app/scripts/lib/tx-utils.js b/app/scripts/lib/tx-gas-utils.js
index 618f69e1c..246c94ccd 100644
--- a/app/scripts/lib/tx-utils.js
+++ b/app/scripts/lib/tx-gas-utils.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.`)
diff --git a/test/unit/tx-utils-test.js b/test/unit/tx-utils-test.js
index dcfb9fb3d..8ca13412e 100644
--- a/test/unit/tx-utils-test.js
+++ b/test/unit/tx-utils-test.js
@@ -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 () {