aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-13 05:52:42 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-13 05:52:42 +0800
commitccf021b8bf34aa7c0714f29f9153a5a11ce682a2 (patch)
treeeec5caa772c3b163d830d90559c342d5f9a784f8 /packages/order-utils/src
parent025614a7fd297444cf47bb5134a83973983ef8a8 (diff)
downloaddexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.tar
dexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.tar.gz
dexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.tar.bz2
dexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.tar.lz
dexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.tar.xz
dexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.tar.zst
dexon-0x-contracts-ccf021b8bf34aa7c0714f29f9153a5a11ce682a2.zip
feat: use new AssetData type from types package
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 0c0b59548..12c11bce9 100644
--- a/packages/order-utils/src/asset_data_utils.ts
+++ b/packages/order-utils/src/asset_data_utils.ts
@@ -1,4 +1,4 @@
-import { AssetProxyId, ERC20AssetData, ERC721AssetData } from '@0xproject/types';
+import { AssetData, AssetProxyId, ERC20AssetData, ERC721AssetData } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import ethAbi = require('ethereumjs-abi');
import ethUtil = require('ethereumjs-util');
@@ -112,7 +112,7 @@ export const assetDataUtils = {
* @param assetData Hex encoded assetData string to decode
* @return Either a ERC20 or ERC721 assetData object
*/
- decodeAssetDataOrThrow(assetData: string): ERC20AssetData | ERC721AssetData {
+ decodeAssetDataOrThrow(assetData: string): AssetData {
const assetProxyId = assetDataUtils.decodeAssetProxyId(assetData);
switch (assetProxyId) {
case AssetProxyId.ERC20: