diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-28 02:48:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 02:48:47 +0800 |
commit | 1be310cef49da42e4534a945b95b633d5846d864 (patch) | |
tree | 99cbfb0ec1d7fc5842bff259870bda3f62437b1e /packages | |
parent | f4a4fefe422a5b2140d5bb394a7f06f842352c69 (diff) | |
parent | ff4f86f1d67c29656976d5230ce9aaff0d3166ca (diff) | |
download | dexon-sol-tools-1be310cef49da42e4534a945b95b633d5846d864.tar.gz dexon-sol-tools-1be310cef49da42e4534a945b95b633d5846d864.tar.zst dexon-sol-tools-1be310cef49da42e4534a945b95b633d5846d864.zip |
Merge pull request #1031 from 0xProject/fix/internal-tests-division-by-zero-assertion
Use correct error message for division by zero
Diffstat (limited to 'packages')
-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 |