aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-08-28 02:48:47 +0800
committerGitHub <noreply@github.com>2018-08-28 02:48:47 +0800
commit1be310cef49da42e4534a945b95b633d5846d864 (patch)
tree99cbfb0ec1d7fc5842bff259870bda3f62437b1e /packages
parentf4a4fefe422a5b2140d5bb394a7f06f842352c69 (diff)
parentff4f86f1d67c29656976d5230ce9aaff0d3166ca (diff)
downloaddexon-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.ts4
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