aboutsummaryrefslogtreecommitdiffstats
path: root/packages/fill-scenarios
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-12-02 15:40:12 +0800
committerAmir Bandeali <abandeali1@gmail.com>2019-01-08 02:31:11 +0800
commitaae32037da737e77b3ffaf0115494a1d7966a972 (patch)
tree21457109767bbe53f39812ce1ebcb474c1de1d11 /packages/fill-scenarios
parent46359c098b0f6f3b0377f9426c78aa2ce2e4cf5a (diff)
downloaddexon-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/fill-scenarios')
-rw-r--r--packages/fill-scenarios/src/fill_scenarios.ts4
1 files changed, 4 insertions, 0 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(