diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-25 08:02:42 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-25 08:02:42 +0800 |
commit | cc1fac9bbee2656bdb327490de42922abfc5125a (patch) | |
tree | 0235fd15e8f9565bc3041ba4b7bfc4c82819a0e1 /packages/contracts/test/exchange/internal.ts | |
parent | bc686fcbf3a0f9eea0c96107b9880314027f2d02 (diff) | |
download | dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.tar dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.tar.gz dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.tar.bz2 dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.tar.lz dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.tar.xz dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.tar.zst dexon-sol-tools-cc1fac9bbee2656bdb327490de42922abfc5125a.zip |
Fix linting errors
Diffstat (limited to 'packages/contracts/test/exchange/internal.ts')
-rw-r--r-- | packages/contracts/test/exchange/internal.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/exchange/internal.ts b/packages/contracts/test/exchange/internal.ts index 14c0ff4cb..2521665c2 100644 --- a/packages/contracts/test/exchange/internal.ts +++ b/packages/contracts/test/exchange/internal.ts @@ -220,9 +220,9 @@ describe('Exchange core internal functions', () => { numerator: BigNumber, denominator: BigNumber, target: BigNumber, - ) { + ): Promise<BigNumber> { if (denominator.eq(0)) { - throw new Error('revert DIVISION_BY_ZERO'); + throw divisionByZeroErrorForCall; } const product = numerator.mul(target); const offset = product.add(denominator.sub(1)); |