diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-01-04 06:29:56 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 02:31:11 +0800 |
commit | a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08 (patch) | |
tree | 111d7e51bb2b531a3e1daf3331c06d0a8924c128 /packages/order-utils | |
parent | ccdb81ac400308276bd6996c1a6b86baa01b9ee5 (diff) | |
download | dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.gz dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.bz2 dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.lz dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.xz dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.zst dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.zip |
Fix linting errors
Diffstat (limited to 'packages/order-utils')
-rw-r--r-- | packages/order-utils/src/asset_data_utils.ts | 1 | ||||
-rw-r--r-- | packages/order-utils/src/index.ts | 1 | ||||
-rw-r--r-- | packages/order-utils/test/asset_data_utils_test.ts | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/packages/order-utils/src/asset_data_utils.ts b/packages/order-utils/src/asset_data_utils.ts index b5ce87e3e..c2929d426 100644 --- a/packages/order-utils/src/asset_data_utils.ts +++ b/packages/order-utils/src/asset_data_utils.ts @@ -154,6 +154,7 @@ export const assetDataUtils = { return { assetProxyId: decodedAssetData.assetProxyId, amounts: flattenedAmounts, + // tslint:disable-next-line:no-unnecessary-type-assertion nestedAssetData: flattenedDecodedNestedAssetData as SingleAssetData[], }; }, diff --git a/packages/order-utils/src/index.ts b/packages/order-utils/src/index.ts index 398188433..2150a02e4 100644 --- a/packages/order-utils/src/index.ts +++ b/packages/order-utils/src/index.ts @@ -41,6 +41,7 @@ export { MultiAssetDataWithRecursiveDecoding, AssetProxyId, SignatureType, + ObjectMap, OrderStateValid, OrderStateInvalid, ExchangeContractErrs, diff --git a/packages/order-utils/test/asset_data_utils_test.ts b/packages/order-utils/test/asset_data_utils_test.ts index d3d265b5a..ebc5bdeac 100644 --- a/packages/order-utils/test/asset_data_utils_test.ts +++ b/packages/order-utils/test/asset_data_utils_test.ts @@ -27,6 +27,7 @@ const KNOWN_MULTI_ASSET_ENCODING = { '0x94cfcdd7000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000024f47261b00000000000000000000000001dc4c1cefef38a777b15aa20260a54e584b16c48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044025717920000000000000000000000001dc4c1cefef38a777b15aa20260a54e584b16c48000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000', }; +// tslint:disable:no-unnecessary-type-assertion describe('assetDataUtils', () => { it('should encode ERC20', () => { const assetData = assetDataUtils.encodeERC20AssetData(KNOWN_ERC20_ENCODING.address); |