aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 21:35:04 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 21:35:04 +0800
commit0a73bbe279ccc0f39363f0bb700c5f581ec5f654 (patch)
tree5b9d1834fb0f708d264a10f2393f752b6ecea239 /packages/0x.js/test
parent2e3c02887efc24de35ce82b3662d9c47a0056a8c (diff)
downloaddexon-sol-tools-0a73bbe279ccc0f39363f0bb700c5f581ec5f654.tar.gz
dexon-sol-tools-0a73bbe279ccc0f39363f0bb700c5f581ec5f654.tar.zst
dexon-sol-tools-0a73bbe279ccc0f39363f0bb700c5f581ec5f654.zip
Add zeroEx.etherToken.getContractAddressifExists
Diffstat (limited to 'packages/0x.js/test')
-rw-r--r--packages/0x.js/test/ether_token_wrapper_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/test/ether_token_wrapper_test.ts b/packages/0x.js/test/ether_token_wrapper_test.ts
index b810fc9f1..6d7d953a8 100644
--- a/packages/0x.js/test/ether_token_wrapper_test.ts
+++ b/packages/0x.js/test/ether_token_wrapper_test.ts
@@ -61,7 +61,7 @@ describe('EtherTokenWrapper', () => {
tokens = await zeroEx.tokenRegistry.getTokensAsync();
userAddresses = await zeroEx.getAvailableAddressesAsync();
addressWithETH = userAddresses[0];
- wethContractAddress = (zeroEx.etherToken as any)._getContractAddress(artifacts.EtherTokenArtifact);
+ wethContractAddress = zeroEx.etherToken.getContractAddressIfExists() as string;
depositWeiAmount = (zeroEx as any)._web3Wrapper.toWei(new BigNumber(5));
decimalPlaces = 7;
addressWithoutFunds = userAddresses[1];