diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-12 06:17:08 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:17 +0800 |
commit | 4e093369f61403562d4d65fb33dcc0a2d09de3de (patch) | |
tree | 4c35265b437ed2780ca9c7aebcaae18ee95fa1ba /packages/contracts/test | |
parent | be8e8791b773b030b28b293c505bc4906aada233 (diff) | |
download | dexon-0x-contracts-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.gz dexon-0x-contracts-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.zst dexon-0x-contracts-4e093369f61403562d4d65fb33dcc0a2d09de3de.zip |
Updated ERC20 v1 proxy names in tests
Diffstat (limited to 'packages/contracts/test')
-rw-r--r-- | packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts | 2 | ||||
-rw-r--r-- | packages/contracts/test/asset_proxy_dispatcher/proxies.ts | 8 | ||||
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts b/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts index 919ecefa9..f466670a8 100644 --- a/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts +++ b/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts @@ -66,7 +66,7 @@ describe('AssetProxyDispatcher', () => { provider, ); // Deploy ERC20 V1 Proxy - const erc20TransferProxyV1Instance = await deployer.deployAsync(ContractName.ERC20Proxy_V1, [ + const erc20TransferProxyV1Instance = await deployer.deployAsync(ContractName.ERC20V1Proxy, [ tokenTransferProxy.address, ]); erc20TransferProxyV1 = new ERC20Proxy_v1Contract( diff --git a/packages/contracts/test/asset_proxy_dispatcher/proxies.ts b/packages/contracts/test/asset_proxy_dispatcher/proxies.ts index fd2f2c26a..72516fd2e 100644 --- a/packages/contracts/test/asset_proxy_dispatcher/proxies.ts +++ b/packages/contracts/test/asset_proxy_dispatcher/proxies.ts @@ -57,7 +57,7 @@ describe('Asset Transfer Proxies', () => { provider, ); // Deploy ERC20 V1 Proxy - const erc20TransferProxyV1Instance = await deployer.deployAsync(ContractName.ERC20Proxy_V1, [ + const erc20TransferProxyV1Instance = await deployer.deployAsync(ContractName.ERC20V1Proxy, [ tokenTransferProxy.address, ]); erc20TransferProxyV1 = new ERC20Proxy_v1Contract( @@ -122,9 +122,9 @@ describe('Asset Transfer Proxies', () => { afterEach(async () => { await blockchainLifecycle.revertAsync(); }); - describe('Transfer Proxy - ERC20_V1', () => { + describe('Transfer Proxy - ERC20V1', () => { it('should successfully encode/decode metadata', async () => { - const metadata = await erc20TransferProxyV1.encodeMetadata.callAsync(AssetProxyId.ERC20_V1, zrx.address); + const metadata = await erc20TransferProxyV1.encodeMetadata.callAsync(AssetProxyId.ERC20V1, zrx.address); const address = await erc20TransferProxyV1.decodeMetadata.callAsync(metadata); expect(address).to.be.equal(zrx.address); }); @@ -137,7 +137,7 @@ describe('Asset Transfer Proxies', () => { it('should successfully encode/decode metadata padded with zeros', async () => { const testAddress = '0x0000000000000000056000000000000000000010'; - const metadata = await erc20TransferProxyV1.encodeMetadata.callAsync(AssetProxyId.ERC20_V1, testAddress); + const metadata = await erc20TransferProxyV1.encodeMetadata.callAsync(AssetProxyId.ERC20V1, testAddress); const address = await erc20TransferProxyV1.decodeMetadata.callAsync(metadata); expect(address).to.be.equal(testAddress); }); diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index 17e378452..2c12f35b7 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -100,7 +100,7 @@ describe('Exchange', () => { provider, ); // Deploy ERC20 V1 Proxy - const erc20TransferProxyV1Instance = await deployer.deployAsync(ContractName.ERC20Proxy_V1, [ + const erc20TransferProxyV1Instance = await deployer.deployAsync(ContractName.ERC20V1Proxy, [ tokenTransferProxy.address, ]); erc20TransferProxyV1 = new ERC20Proxy_v1Contract( @@ -115,7 +115,7 @@ describe('Exchange', () => { from: accounts[0], }); await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( - AssetProxyId.ERC20_V1, + AssetProxyId.ERC20V1, erc20TransferProxyV1.address, ZeroEx.NULL_ADDRESS, { from: accounts[0] }, |