diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-12 22:01:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-12 22:01:55 +0800 |
commit | d114613384599f69c6fe10bb3172ad9be7d086f3 (patch) | |
tree | b77e9197c336b818bc785f1f377b5f91f0f8114a /test/utils/fill_scenarios.ts | |
parent | c23ea1e688f68f7aeaf24e562d44a0761ab35f7d (diff) | |
download | dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.tar dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.tar.gz dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.tar.bz2 dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.tar.lz dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.tar.xz dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.tar.zst dexon-sol-tools-d114613384599f69c6fe10bb3172ad9be7d086f3.zip |
Add a regression test
Diffstat (limited to 'test/utils/fill_scenarios.ts')
-rw-r--r-- | test/utils/fill_scenarios.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils/fill_scenarios.ts b/test/utils/fill_scenarios.ts index e305759f6..c399c7bf4 100644 --- a/test/utils/fill_scenarios.ts +++ b/test/utils/fill_scenarios.ts @@ -91,7 +91,7 @@ export class FillScenarios { } private async increaseBalanceAndAllowanceAsync( tokenAddress: string, address: string, amount: BigNumber.BigNumber): Promise<void> { - if (amount.isZero()) { + if (amount.isZero() || address === ZeroEx.NULL_ADDRESS) { return; // noop } await Promise.all([ |