aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-15 00:12:18 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-15 00:12:18 +0800
commitf7f4b6da8d165cd1450734d8bd37717a8fb5cdde (patch)
tree346c7d918f9d205a8d3c342201519a5e21a18b53 /packages
parentc975676f6c49ecb40938b3f3748f0f7e2f83fe96 (diff)
downloaddexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar
dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar.gz
dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar.bz2
dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar.lz
dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar.xz
dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar.zst
dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.zip
Fix a conditional
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/test/utils/fill_scenarios.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/0x.js/test/utils/fill_scenarios.ts b/packages/0x.js/test/utils/fill_scenarios.ts
index bcaa63c78..7275684a6 100644
--- a/packages/0x.js/test/utils/fill_scenarios.ts
+++ b/packages/0x.js/test/utils/fill_scenarios.ts
@@ -29,9 +29,7 @@ export class FillScenarios {
public async initTokenBalancesAsync() {
const web3Wrapper = (this.zeroEx as any)._web3Wrapper as Web3Wrapper;
for (const token of this.tokens) {
- if (token.symbol === 'WETH') {
- // _.noop
- } else if (token.symbol !== 'ZRX') {
+ if (token.symbol !== 'ZRX' && token.symbol !== 'WETH') {
const contractInstance = web3Wrapper.getContractInstance(
artifacts.DummyTokenArtifact.abi, token.address,
);
@@ -41,8 +39,6 @@ export class FillScenarios {
from: this.coinbase,
});
await this.zeroEx.awaitTransactionMinedAsync(txHash);
- } else {
- // no-op
}
}
}