aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/0x.js_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-17 14:32:53 +0800
committerFabio Berger <me@fabioberger.com>2017-12-17 14:32:53 +0800
commit1f748afed96ed40d1ee61b970e8c6fe2a75fa382 (patch)
treee4d78bfa36223db43bac7502309cd950a8523e25 /packages/0x.js/test/0x.js_test.ts
parent4a73c05435a653565a92aedfbf56d45997f0673f (diff)
downloaddexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.tar
dexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.tar.gz
dexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.tar.bz2
dexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.tar.lz
dexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.tar.xz
dexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.tar.zst
dexon-sol-tools-1f748afed96ed40d1ee61b970e8c6fe2a75fa382.zip
Modify the etherToken wrapper methods to accept an etherTokenAddress as the first arg. Since it is becoming apparent we will be updating the canonical WETH contract, we want users of 0x.js to be able to interact with n number of etherTokens without re-instantiating for each one.
Diffstat (limited to 'packages/0x.js/test/0x.js_test.ts')
-rw-r--r--packages/0x.js/test/0x.js_test.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts
index e1ceb12c8..c5aa1926f 100644
--- a/packages/0x.js/test/0x.js_test.ts
+++ b/packages/0x.js/test/0x.js_test.ts
@@ -244,14 +244,6 @@ describe('ZeroEx library', () => {
const zeroExWithWrongExchangeAddress = new ZeroEx(web3.currentProvider, zeroExConfig);
expect(zeroExWithWrongExchangeAddress.exchange.getContractAddress()).to.be.equal(ZeroEx.NULL_ADDRESS);
});
- it('allows to specify ether token contract address', async () => {
- const zeroExConfig = {
- etherTokenContractAddress: ZeroEx.NULL_ADDRESS,
- networkId: constants.TESTRPC_NETWORK_ID,
- };
- const zeroExWithWrongEtherTokenAddress = new ZeroEx(web3.currentProvider, zeroExConfig);
- expect(zeroExWithWrongEtherTokenAddress.etherToken.getContractAddress()).to.be.equal(ZeroEx.NULL_ADDRESS);
- });
it('allows to specify token registry token contract address', async () => {
const zeroExConfig = {
tokenRegistryContractAddress: ZeroEx.NULL_ADDRESS,