diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 00:12:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 00:12:18 +0800 |
commit | f7f4b6da8d165cd1450734d8bd37717a8fb5cdde (patch) | |
tree | 346c7d918f9d205a8d3c342201519a5e21a18b53 /packages | |
parent | c975676f6c49ecb40938b3f3748f0f7e2f83fe96 (diff) | |
download | dexon-sol-tools-f7f4b6da8d165cd1450734d8bd37717a8fb5cdde.tar.gz 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.ts | 6 |
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 } } } |