aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/fill_scenarios.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-10-12 22:51:37 +0800
committerGitHub <noreply@github.com>2017-10-12 22:51:37 +0800
commitf4fbac26945a53b081e616de63cba20e0bff6af7 (patch)
tree0928f4dedbb91a6de5e35ff9dbeaf491c7b9a256 /test/utils/fill_scenarios.ts
parentc23ea1e688f68f7aeaf24e562d44a0761ab35f7d (diff)
parentb86f6322e16309feea865e1b304dc7da5ce8ec86 (diff)
downloaddexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.tar
dexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.tar.gz
dexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.tar.bz2
dexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.tar.lz
dexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.tar.xz
dexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.tar.zst
dexon-sol-tools-f4fbac26945a53b081e616de63cba20e0bff6af7.zip
Merge pull request #193 from 0xProject/fix/allowance-error
Fix an issue causing fills to throw `INSUFFICIENT_TAKER_ALLOWANCE`
Diffstat (limited to 'test/utils/fill_scenarios.ts')
-rw-r--r--test/utils/fill_scenarios.ts2
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([