diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-12-02 15:40:12 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 02:31:11 +0800 |
commit | aae32037da737e77b3ffaf0115494a1d7966a972 (patch) | |
tree | 21457109767bbe53f39812ce1ebcb474c1de1d11 /packages | |
parent | 46359c098b0f6f3b0377f9426c78aa2ce2e4cf5a (diff) | |
download | dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.tar dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.tar.gz dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.tar.bz2 dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.tar.lz dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.tar.xz dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.tar.zst dexon-sol-tools-aae32037da737e77b3ffaf0115494a1d7966a972.zip |
Run linter
Diffstat (limited to 'packages')
-rw-r--r-- | packages/fill-scenarios/src/fill_scenarios.ts | 4 | ||||
-rw-r--r-- | packages/order-watcher/src/order_watcher/order_watcher.ts | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/fill-scenarios/src/fill_scenarios.ts b/packages/fill-scenarios/src/fill_scenarios.ts index b11b01a22..2e87e60cc 100644 --- a/packages/fill-scenarios/src/fill_scenarios.ts +++ b/packages/fill-scenarios/src/fill_scenarios.ts @@ -283,6 +283,7 @@ export class FillScenarios { switch (decodedAssetData.assetProxyId) { case AssetProxyId.ERC20: await this._increaseERC20BalanceAndAllowanceAsync( + // tslint:disable-next-line:no-unnecessary-type-assertion (decodedAssetData as ERC20AssetData).tokenAddress, userAddress, amount, @@ -290,6 +291,7 @@ export class FillScenarios { break; case AssetProxyId.ERC721: await this._increaseERC721BalanceAndAllowanceAsync( + // tslint:disable-next-line:no-unnecessary-type-assertion (decodedAssetData as ERC721AssetData).tokenAddress, userAddress, // tslint:disable-next-line:no-unnecessary-type-assertion @@ -300,7 +302,9 @@ export class FillScenarios { for (const [ index, nestedAssetDataElement, + // tslint:disable-next-line:no-unnecessary-type-assertion ] of (decodedAssetData as MultiAssetData).nestedAssetData.entries()) { + // tslint:disable-next-line:no-unnecessary-type-assertion const amountsElement = (decodedAssetData as MultiAssetData).amounts[index]; const totalAmount = amount.times(amountsElement); await this._increaseBalanceAndAllowanceWithAssetDataAsync( diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts index bf890f0e6..c48606555 100644 --- a/packages/order-watcher/src/order_watcher/order_watcher.ts +++ b/packages/order-watcher/src/order_watcher/order_watcher.ts @@ -502,4 +502,4 @@ export class OrderWatcher { this._callbackIfExists(null, orderState); } } -} +} // tslint:disable:max-file-line-count |