diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-28 18:19:20 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-28 18:19:20 +0800 |
commit | 4a40edbbb70afd4c2599f2c6094eacf643ddcedb (patch) | |
tree | 2bb48a520aba0ded54a2a15e4ec663a266a3d751 /packages/contracts/test/exchange/internal.ts | |
parent | 2997ba208fbbbcc70785b0a759753851de3e2ca5 (diff) | |
parent | 2eab0e30b753fb33729db53d141c8e22017cadec (diff) | |
download | dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.tar dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.tar.gz dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.tar.bz2 dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.tar.lz dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.tar.xz dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.tar.zst dexon-sol-tools-4a40edbbb70afd4c2599f2c6094eacf643ddcedb.zip |
Merge branch 'development' into dev-dropdown
* development:
fix(contracts): Catch cases where the actual error differs from the expected error (#1032)
Add clarifying comments
Remove redundant mstores from fillOrderNoThrow
fix(contracts): Use correct error message for division by zero
Diffstat (limited to 'packages/contracts/test/exchange/internal.ts')
-rw-r--r-- | packages/contracts/test/exchange/internal.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/contracts/test/exchange/internal.ts b/packages/contracts/test/exchange/internal.ts index 2521665c2..de381fca3 100644 --- a/packages/contracts/test/exchange/internal.ts +++ b/packages/contracts/test/exchange/internal.ts @@ -67,9 +67,7 @@ describe('Exchange core internal functions', () => { overflowErrorForSendTransaction = new Error( await getRevertReasonOrErrorMessageForSendTransactionAsync(RevertReason.Uint256Overflow), ); - divisionByZeroErrorForCall = new Error( - await getRevertReasonOrErrorMessageForSendTransactionAsync(RevertReason.DivisionByZero), - ); + divisionByZeroErrorForCall = new Error(RevertReason.DivisionByZero); invalidOpcodeErrorForCall = new Error(await getInvalidOpcodeErrorMessageForCallAsync()); }); // Note(albrow): Don't forget to add beforeEach and afterEach calls to reset |