diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 03:11:19 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 03:11:19 +0800 |
commit | fd37e88bdbdcc821e4aa734aed6ad1f499b2b3e4 (patch) | |
tree | 094420dc85ebaa83cc5e44ab7805f278418c953e /packages/pipeline/src/utils | |
parent | 24564b986daa703f66e54f85abf4782d99a40f94 (diff) | |
download | dexon-sol-tools-fd37e88bdbdcc821e4aa734aed6ad1f499b2b3e4.tar.gz dexon-sol-tools-fd37e88bdbdcc821e4aa734aed6ad1f499b2b3e4.tar.zst dexon-sol-tools-fd37e88bdbdcc821e4aa734aed6ad1f499b2b3e4.zip |
Use enums in pipeline
Diffstat (limited to 'packages/pipeline/src/utils')
-rw-r--r-- | packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts b/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts index ffeaaca52..2cd05a616 100644 --- a/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts +++ b/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts @@ -9,11 +9,11 @@ import { AssetType } from '../../types'; export function convertAssetProxyIdToType(assetProxyId: AssetProxyId): AssetType { switch (assetProxyId) { case AssetProxyId.ERC20: - return 'erc20'; + return AssetType.ERC20; case AssetProxyId.ERC721: - return 'erc721'; + return AssetType.ERC721; case AssetProxyId.MultiAsset: - return 'multiAsset'; + return AssetType.MultiAsset; default: throw new Error(`${assetProxyId} not a supported assetProxyId`); } |