diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-18 17:49:30 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-18 17:49:30 +0800 |
commit | 12f02b98143513d8309a9df7d4dcab46d60352da (patch) | |
tree | e09c9b77de3c5737fd1936d484e010ba6e848fee /packages/order-utils/src | |
parent | 89313883098b545c2afe9c4d84bc02b8bc8fd370 (diff) | |
download | dexon-0x-contracts-12f02b98143513d8309a9df7d4dcab46d60352da.tar.gz dexon-0x-contracts-12f02b98143513d8309a9df7d4dcab46d60352da.tar.zst dexon-0x-contracts-12f02b98143513d8309a9df7d4dcab46d60352da.zip |
Rename decodeAssetDataId to decodeAssetProxyId for consistency
Diffstat (limited to 'packages/order-utils/src')
-rw-r--r-- | packages/order-utils/src/asset_data_utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-utils/src/asset_data_utils.ts b/packages/order-utils/src/asset_data_utils.ts index 732849f6f..68ce129ba 100644 --- a/packages/order-utils/src/asset_data_utils.ts +++ b/packages/order-utils/src/asset_data_utils.ts @@ -100,7 +100,7 @@ export const assetDataUtils = { * @param assetData Hex encoded assetData string to decode * @return The assetProxyId */ - decodeAssetDataId(assetData: string): AssetProxyId { + decodeAssetProxyId(assetData: string): AssetProxyId { const encodedAssetData = ethUtil.toBuffer(assetData); if (encodedAssetData.byteLength < constants.SELECTOR_LENGTH) { throw new Error( @@ -119,7 +119,7 @@ export const assetDataUtils = { * @return Either a ERC20 or ERC721 assetData object */ decodeAssetData(assetData: string): ERC20AssetData | ERC721AssetData { - const assetProxyId = assetDataUtils.decodeAssetDataId(assetData); + const assetProxyId = assetDataUtils.decodeAssetProxyId(assetData); switch (assetProxyId) { case AssetProxyId.ERC20: const erc20AssetData = assetDataUtils.decodeERC20AssetData(assetData); |