aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-25 08:02:42 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-25 08:02:42 +0800
commitcc1fac9bbee2656bdb327490de42922abfc5125a (patch)
tree0235fd15e8f9565bc3041ba4b7bfc4c82819a0e1
parentbc686fcbf3a0f9eea0c96107b9880314027f2d02 (diff)
downloaddexon-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
-rw-r--r--packages/contracts/test/exchange/internal.ts4
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));