aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/fill-scenarios/src/fill_scenarios.ts4
-rw-r--r--packages/order-watcher/src/order_watcher/order_watcher.ts2
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