aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-09-06 11:13:43 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-09-06 11:13:43 +0800
commit4c554f32eca5ceda2d525b967075ec2b6ff41809 (patch)
tree44991fc7147fc888db03058d052bad3c36295655 /test
parent474a4e941f7bb5c19ac50d61c6c681a19278b52f (diff)
downloadtangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.tar
tangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.tar.gz
tangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.tar.bz2
tangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.tar.lz
tangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.tar.xz
tangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.tar.zst
tangerine-wallet-browser-4c554f32eca5ceda2d525b967075ec2b6ff41809.zip
remove #buildEthTxFromParams
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-utils-test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/tx-utils-test.js b/test/unit/tx-utils-test.js
index 43128b977..dcfb9fb3d 100644
--- a/test/unit/tx-utils-test.js
+++ b/test/unit/tx-utils-test.js
@@ -1,6 +1,8 @@
const assert = require('assert')
+const Transaction = require('ethereumjs-tx')
const BN = require('bn.js')
+
const { hexToBn, bnToHex } = require('../../app/scripts/lib/util')
const TxUtils = require('../../app/scripts/lib/tx-utils')
@@ -28,7 +30,7 @@ describe('txUtils', function () {
nonce: '0x3',
chainId: 42,
}
- const ethTx = txUtils.buildEthTxFromParams(txParams)
+ const ethTx = new Transaction(txParams)
assert.equal(ethTx.getChainId(), 42, 'chainId is set from tx params')
})
})