aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-18 17:49:30 +0800
committerFabio Berger <me@fabioberger.com>2018-07-18 17:49:30 +0800
commit12f02b98143513d8309a9df7d4dcab46d60352da (patch)
treee09c9b77de3c5737fd1936d484e010ba6e848fee /packages/order-utils/src
parent89313883098b545c2afe9c4d84bc02b8bc8fd370 (diff)
downloaddexon-sol-tools-12f02b98143513d8309a9df7d4dcab46d60352da.tar
dexon-sol-tools-12f02b98143513d8309a9df7d4dcab46d60352da.tar.gz
dexon-sol-tools-12f02b98143513d8309a9df7d4dcab46d60352da.tar.bz2
dexon-sol-tools-12f02b98143513d8309a9df7d4dcab46d60352da.tar.lz
dexon-sol-tools-12f02b98143513d8309a9df7d4dcab46d60352da.tar.xz
dexon-sol-tools-12f02b98143513d8309a9df7d4dcab46d60352da.tar.zst
dexon-sol-tools-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.ts4
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);