diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-28 02:19:25 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-28 02:19:25 +0800 |
commit | ff4f86f1d67c29656976d5230ce9aaff0d3166ca (patch) | |
tree | 99cbfb0ec1d7fc5842bff259870bda3f62437b1e /packages/contracts | |
parent | f4a4fefe422a5b2140d5bb394a7f06f842352c69 (diff) | |
download | dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar.gz dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar.zst dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.zip |
fix(contracts): Use correct error message for division by zero
Diffstat (limited to 'packages/contracts')
-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 |