diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-09-06 11:13:43 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-09-06 11:13:43 +0800 |
commit | 4c554f32eca5ceda2d525b967075ec2b6ff41809 (patch) | |
tree | 44991fc7147fc888db03058d052bad3c36295655 /test | |
parent | 474a4e941f7bb5c19ac50d61c6c681a19278b52f (diff) | |
download | tangerine-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.js | 4 |
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') }) }) |