From d114613384599f69c6fe10bb3172ad9be7d086f3 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 12 Oct 2017 17:01:55 +0300 Subject: Add a regression test --- test/utils/fill_scenarios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/utils') 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 { - if (amount.isZero()) { + if (amount.isZero() || address === ZeroEx.NULL_ADDRESS) { return; // noop } await Promise.all([ -- cgit v1.2.3