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/asset_proxy_dispatcher | |
parent | be8e8791b773b030b28b293c505bc4906aada233 (diff) | |
download | dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.gz dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.zst dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.zip |
Updated ERC20 v1 proxy names in tests
Diffstat (limited to 'packages/contracts/test/asset_proxy_dispatcher')
-rw-r--r-- | packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts | 2 | ||||
-rw-r--r-- | packages/contracts/test/asset_proxy_dispatcher/proxies.ts | 8 |
2 files changed, 5 insertions, 5 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); }); |