aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils/assertions.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-06-06 06:12:09 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-06-07 03:40:31 +0800
commit63caddea62453863de84a4b53e14fe3e61d3008f (patch)
treef9fa506486272d49e708b44e9f65dc86c196aeea /packages/contracts/src/utils/assertions.ts
parent36b01fbdcfcda93d185e018e31a919c36f2848ac (diff)
downloaddexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.tar
dexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.tar.gz
dexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.tar.bz2
dexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.tar.lz
dexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.tar.xz
dexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.tar.zst
dexon-sol-tools-63caddea62453863de84a4b53e14fe3e61d3008f.zip
Small fixes and cleanup
Diffstat (limited to 'packages/contracts/src/utils/assertions.ts')
-rw-r--r--packages/contracts/src/utils/assertions.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/contracts/src/utils/assertions.ts b/packages/contracts/src/utils/assertions.ts
index 4fc410363..1ea071d01 100644
--- a/packages/contracts/src/utils/assertions.ts
+++ b/packages/contracts/src/utils/assertions.ts
@@ -13,8 +13,7 @@ export function expectRevertOrAlwaysFailingTransaction<T>(p: Promise<T>): Promis
.then(e => {
expect(e).to.satisfy(
(err: Error) =>
- _.includes(err.message, constants.REVERT) ||
- _.includes(err.message, constants.ALWAYS_FAILING_TRANSACTION),
+ _.includes(err.message, constants.REVERT) || _.includes(err.message, 'always failing transaction'),
);
});
}
@@ -37,8 +36,7 @@ export function expectRevertOrContractCallFailed<T>(p: Promise<T>): PromiseLike<
.then(e => {
expect(e).to.satisfy(
(err: Error) =>
- _.includes(err.message, constants.REVERT) ||
- _.includes(err.message, constants.CONTRACT_CALL_FAILED),
+ _.includes(err.message, constants.REVERT) || _.includes(err.message, 'Contract call failed'),
);
});
}