aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-04-05 19:06:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-04-05 19:06:16 +0800
commit59edca41666851dc84a32330f1d978772818da9d (patch)
tree8f6017cec590619824ebc3b939a61e0f82de0fdd /packages/0x.js
parentfbba5e054a158a933936922c8212d686595eccbd (diff)
downloaddexon-sol-tools-59edca41666851dc84a32330f1d978772818da9d.tar.gz
dexon-sol-tools-59edca41666851dc84a32330f1d978772818da9d.tar.zst
dexon-sol-tools-59edca41666851dc84a32330f1d978772818da9d.zip
Call static functions as static
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/test/ether_token_wrapper_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/test/ether_token_wrapper_test.ts b/packages/0x.js/test/ether_token_wrapper_test.ts
index 6237ccf23..23592f92e 100644
--- a/packages/0x.js/test/ether_token_wrapper_test.ts
+++ b/packages/0x.js/test/ether_token_wrapper_test.ts
@@ -59,7 +59,7 @@ describe('EtherTokenWrapper', () => {
userAddresses = await zeroEx.getAvailableAddressesAsync();
addressWithETH = userAddresses[0];
wethContractAddress = zeroEx.etherToken.getContractAddressIfExists() as string;
- depositWeiAmount = (zeroEx as any)._web3Wrapper.toWei(new BigNumber(5));
+ depositWeiAmount = Web3Wrapper.toWei(new BigNumber(5));
decimalPlaces = 7;
addressWithoutFunds = userAddresses[1];
});
@@ -105,7 +105,7 @@ describe('EtherTokenWrapper', () => {
it('should throw if user has insufficient ETH balance for deposit', async () => {
const preETHBalance = await (zeroEx as any)._web3Wrapper.getBalanceInWeiAsync(addressWithETH);
- const extraETHBalance = (zeroEx as any)._web3Wrapper.toWei(5, 'ether');
+ const extraETHBalance = Web3Wrapper.toWei(5, 'ether');
const overETHBalanceinWei = preETHBalance.add(extraETHBalance);
return expect(