diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-10-12 22:51:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-12 22:51:37 +0800 |
commit | f4fbac26945a53b081e616de63cba20e0bff6af7 (patch) | |
tree | 0928f4dedbb91a6de5e35ff9dbeaf491c7b9a256 /test/utils/fill_scenarios.ts | |
parent | c23ea1e688f68f7aeaf24e562d44a0761ab35f7d (diff) | |
parent | b86f6322e16309feea865e1b304dc7da5ce8ec86 (diff) | |
download | dexon-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.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([ |