aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 23:18:00 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 23:18:00 +0800
commit6629a716b9dccbc5f07f60830dfe356c4c434f52 (patch)
tree705d90a358c23d095c2e5dbffe93b2cd6ab7526e /test
parent3090a71e9df2c91ba44665c6b5098997669f72c3 (diff)
downloaddexon-0x-contracts-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.gz
dexon-0x-contracts-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.zst
dexon-0x-contracts-6629a716b9dccbc5f07f60830dfe356c4c434f52.zip
Don't pass expressions as parameters
Diffstat (limited to 'test')
-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 539333b9b..a90fc5f57 100644
--- a/test/utils/fill_scenarios.ts
+++ b/test/utils/fill_scenarios.ts
@@ -71,13 +71,15 @@ export class FillScenarios {
feeRecepient: string, expirationUnixTimestampSec?: BigNumber.BigNumber): Promise<SignedOrder> {
await this.zeroEx.token.transferAsync(makerTokenAddress, this.coinbase, makerAddress, makerFillableAmount);
const oldMakerAllowance = await this.zeroEx.token.getProxyAllowanceAsync(makerTokenAddress, makerAddress);
+ const newMakerAllowance = oldMakerAllowance.plus(makerFillableAmount);
await this.zeroEx.token.setProxyAllowanceAsync(
- makerTokenAddress, makerAddress, oldMakerAllowance.plus(makerFillableAmount),
+ makerTokenAddress, makerAddress, newMakerAllowance,
);
await this.zeroEx.token.transferAsync(takerTokenAddress, this.coinbase, takerAddress, takerFillableAmount);
const oldTakerAllowance = await this.zeroEx.token.getProxyAllowanceAsync(takerTokenAddress, takerAddress);
+ const newTakerAllowance = oldTakerAllowance.plus(takerFillableAmount);
await this.zeroEx.token.setProxyAllowanceAsync(
- takerTokenAddress, takerAddress, oldTakerAllowance.plus(takerFillableAmount),
+ takerTokenAddress, takerAddress, newTakerAllowance,
);
if (!makerFee.isZero()) {