diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-08 23:18:00 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-08 23:18:00 +0800 |
commit | 6629a716b9dccbc5f07f60830dfe356c4c434f52 (patch) | |
tree | 705d90a358c23d095c2e5dbffe93b2cd6ab7526e /test/utils/fill_scenarios.ts | |
parent | 3090a71e9df2c91ba44665c6b5098997669f72c3 (diff) | |
download | dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.gz dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.bz2 dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.lz dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.xz dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.tar.zst dexon-sol-tools-6629a716b9dccbc5f07f60830dfe356c4c434f52.zip |
Don't pass expressions as parameters
Diffstat (limited to 'test/utils/fill_scenarios.ts')
-rw-r--r-- | test/utils/fill_scenarios.ts | 6 |
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()) { |