aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 23:18:55 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 23:18:55 +0800
commitf7953511bb1886c6fe3810462926bdbdd0088781 (patch)
tree8120b50b1acd829f2565fda709c4be7ba20cd6c3 /test/utils
parent6629a716b9dccbc5f07f60830dfe356c4c434f52 (diff)
downloaddexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.tar
dexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.tar.gz
dexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.tar.bz2
dexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.tar.lz
dexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.tar.xz
dexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.tar.zst
dexon-sol-tools-f7953511bb1886c6fe3810462926bdbdd0088781.zip
Don't pass expressions as parameters
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/fill_scenarios.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/utils/fill_scenarios.ts b/test/utils/fill_scenarios.ts
index a90fc5f57..2860f1472 100644
--- a/test/utils/fill_scenarios.ts
+++ b/test/utils/fill_scenarios.ts
@@ -86,16 +86,18 @@ export class FillScenarios {
await this.zeroEx.token.transferAsync(this.zrxTokenAddress, this.coinbase, makerAddress, makerFee);
const oldMakerFeeAllowance =
await this.zeroEx.token.getProxyAllowanceAsync(this.zrxTokenAddress, makerAddress);
+ const newMakerFeeAllowance = oldMakerFeeAllowance.plus(makerFee);
await this.zeroEx.token.setProxyAllowanceAsync(
- this.zrxTokenAddress, makerAddress, oldMakerFeeAllowance.plus(makerFee),
+ this.zrxTokenAddress, makerAddress, newMakerFeeAllowance,
);
}
if (!takerFee.isZero()) {
await this.zeroEx.token.transferAsync(this.zrxTokenAddress, this.coinbase, takerAddress, takerFee);
const oldTakerFeeAllowance =
await this.zeroEx.token.getProxyAllowanceAsync(this.zrxTokenAddress, takerAddress);
+ const newTakerFeeAllowance = oldTakerFeeAllowance.plus(takerFee);
await this.zeroEx.token.setProxyAllowanceAsync(
- this.zrxTokenAddress, takerAddress, oldTakerFeeAllowance.plus(takerFee),
+ this.zrxTokenAddress, takerAddress, newTakerFeeAllowance,
);
}