diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-13 10:06:03 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:17 +0800 |
commit | 44919c353e0d4258eabcc3b88bc69babcd477d13 (patch) | |
tree | 29d6de938c8b83ed223067582d8cdb3af2443ad3 /packages/contracts/test | |
parent | cf8523da5fe532d637105886a6261ddd81f81183 (diff) | |
download | dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.tar dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.tar.gz dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.tar.bz2 dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.tar.lz dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.tar.xz dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.tar.zst dexon-sol-tools-44919c353e0d4258eabcc3b88bc69babcd477d13.zip |
Removed unnecessary deployments in test
Diffstat (limited to 'packages/contracts/test')
-rw-r--r-- | packages/contracts/test/exchange/helpers.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/packages/contracts/test/exchange/helpers.ts b/packages/contracts/test/exchange/helpers.ts index ed140c733..c447c0e01 100644 --- a/packages/contracts/test/exchange/helpers.ts +++ b/packages/contracts/test/exchange/helpers.ts @@ -7,7 +7,7 @@ import ethUtil = require('ethereumjs-util'); import { ERC20ProxyContract } from '../../src/contract_wrappers/generated/e_r_c20_proxy'; import { ExchangeContract } from '../../src/contract_wrappers/generated/exchange'; -import { encodeERC20ProxyData, encodeERC20V1ProxyData, encodeERC721ProxyData } from '../../src/utils/asset_proxy_utils'; +import { encodeERC20ProxyData } from '../../src/utils/asset_proxy_utils'; import { constants } from '../../src/utils/constants'; import { ExchangeWrapper } from '../../src/utils/exchange_wrapper'; import { OrderFactory } from '../../src/utils/order_factory'; @@ -42,22 +42,6 @@ describe('Exchange', () => { deployer.deployAsync(ContractName.DummyToken, constants.DUMMY_TOKEN_ARGS), ]); const assetProxyDispatcher = await deployer.deployAsync(ContractName.AssetProxyDispatcher); - // Deploy ERC20 Proxy - const erc20TransferProxyInstance = await deployer.deployAsync(ContractName.ERC20Proxy); - const erc20TransferProxy = new ERC20ProxyContract( - erc20TransferProxyInstance.abi, - erc20TransferProxyInstance.address, - provider, - ); - await erc20TransferProxy.addAuthorizedAddress.sendTransactionAsync(assetProxyDispatcher.address, { - from: owner, - }); - await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( - AssetProxyId.ERC20, - erc20TransferProxy.address, - ZeroEx.NULL_ADDRESS, - { from: owner }, - ); // Deploy and configure Exchange const exchangeInstance = await deployer.deployAsync(ContractName.Exchange, [ zrx.address, |