aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
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,
);
}