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/src | |
parent | be8e8791b773b030b28b293c505bc4906aada233 (diff) | |
download | dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.gz dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.bz2 dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.lz dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.xz dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.tar.zst dexon-sol-tools-4e093369f61403562d4d65fb33dcc0a2d09de3de.zip |
Updated ERC20 v1 proxy names in tests
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/utils/asset_proxy_utils.ts | 2 | ||||
-rw-r--r-- | packages/contracts/src/utils/types.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/contracts/src/utils/asset_proxy_utils.ts b/packages/contracts/src/utils/asset_proxy_utils.ts index 7011e0e39..63de7252d 100644 --- a/packages/contracts/src/utils/asset_proxy_utils.ts +++ b/packages/contracts/src/utils/asset_proxy_utils.ts @@ -25,7 +25,7 @@ export function encodeUint256(value: BigNumber): Buffer { } export function encodeERC20V1ProxyData(tokenAddress: string): string { - const encodedAssetProxyId = encodeAssetProxyId(AssetProxyId.ERC20_V1); + const encodedAssetProxyId = encodeAssetProxyId(AssetProxyId.ERC20V1); const encodedAddress = encodeAddress(tokenAddress); const encodedMetadata = Buffer.concat([encodedAssetProxyId, encodedAddress]); const encodedMetadataHex = ethUtil.bufferToHex(encodedMetadata); diff --git a/packages/contracts/src/utils/types.ts b/packages/contracts/src/utils/types.ts index 8cfde8a07..f51dd5a1d 100644 --- a/packages/contracts/src/utils/types.ts +++ b/packages/contracts/src/utils/types.ts @@ -39,7 +39,7 @@ export interface CancelOrdersBefore { export enum AssetProxyId { INVALID, - ERC20_V1, + ERC20V1, ERC20, ERC721, } @@ -111,7 +111,7 @@ export enum ContractName { Arbitrage = 'Arbitrage', AssetProxyDispatcher = 'AssetProxyDispatcher', ERC20Proxy = 'ERC20Proxy', - ERC20Proxy_V1 = 'ERC20Proxy_v1', + ERC20V1Proxy = 'ERC20Proxy_v1', ERC721Proxy = 'ERC721Proxy', DummyERC721Token = 'DummyERC721Token', } |