aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/ts/multi_sig_with_time_lock.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2017-12-05 08:58:15 +0800
committerAmir Bandeali <abandeali1@gmail.com>2017-12-13 07:02:04 +0800
commite6862e973983d478b7683425983f18b4680dd238 (patch)
tree973e558090eb66357ea63e63d748732961499e0b /packages/contracts/test/ts/multi_sig_with_time_lock.ts
parent7008e882c0508939da117cd90fe06e7006b85300 (diff)
downloaddexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.gz
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.bz2
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.lz
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.xz
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.zst
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.zip
Fix errors with new testrpc version
Diffstat (limited to 'packages/contracts/test/ts/multi_sig_with_time_lock.ts')
-rw-r--r--packages/contracts/test/ts/multi_sig_with_time_lock.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/contracts/test/ts/multi_sig_with_time_lock.ts b/packages/contracts/test/ts/multi_sig_with_time_lock.ts
index 6dd4dc3b2..84eb21b4a 100644
--- a/packages/contracts/test/ts/multi_sig_with_time_lock.ts
+++ b/packages/contracts/test/ts/multi_sig_with_time_lock.ts
@@ -44,7 +44,7 @@ contract('MultiSigWalletWithTimeLock', (accounts: string[]) => {
describe('changeTimeLock', () => {
it('should throw when not called by wallet', async () => {
return expect(multiSig.changeTimeLock(SECONDS_TIME_LOCKED, {from: owners[0]}))
- .to.be.rejectedWith(constants.INVALID_OPCODE);
+ .to.be.rejectedWith(constants.REVERT);
});
it('should throw without enough confirmations', async () => {
@@ -58,7 +58,7 @@ contract('MultiSigWalletWithTimeLock', (accounts: string[]) => {
const subRes = await multiSigWrapper.submitTransactionAsync(destination, from, dataParams);
txId = subRes.logs[0].args.transactionId.toNumber();
- return expect(multiSig.executeTransaction(txId)).to.be.rejectedWith(constants.INVALID_OPCODE);
+ return expect(multiSig.executeTransaction(txId)).to.be.rejectedWith(constants.REVERT);
});
it('should set confirmation time with enough confirmations', async () => {
@@ -97,7 +97,7 @@ contract('MultiSigWalletWithTimeLock', (accounts: string[]) => {
const confRes = await multiSig.confirmTransaction(txId, {from: owners[1]});
expect(confRes.logs).to.have.length(2);
- return expect(multiSig.executeTransaction(txId)).to.be.rejectedWith(constants.INVALID_OPCODE);
+ return expect(multiSig.executeTransaction(txId)).to.be.rejectedWith(constants.REVERT);
});
it('should execute if it has enough confirmations and is past the time lock', async () => {