aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-08-28 02:19:25 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-08-28 02:19:25 +0800
commitff4f86f1d67c29656976d5230ce9aaff0d3166ca (patch)
tree99cbfb0ec1d7fc5842bff259870bda3f62437b1e /packages/contracts
parentf4a4fefe422a5b2140d5bb394a7f06f842352c69 (diff)
downloaddexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar
dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar.gz
dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar.bz2
dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar.lz
dexon-sol-tools-ff4f86f1d67c29656976d5230ce9aaff0d3166ca.tar.xz
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.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