From 9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901 Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Sat, 1 Sep 2018 18:53:02 -0700 Subject: Add more tests for MultiSigWalletWithTimeLock --- packages/contracts/test/utils/multi_sig_wrapper.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/contracts/test/utils/multi_sig_wrapper.ts') diff --git a/packages/contracts/test/utils/multi_sig_wrapper.ts b/packages/contracts/test/utils/multi_sig_wrapper.ts index e0c27b839..cb2b4c74c 100644 --- a/packages/contracts/test/utils/multi_sig_wrapper.ts +++ b/packages/contracts/test/utils/multi_sig_wrapper.ts @@ -36,6 +36,11 @@ export class MultiSigWrapper { const tx = await this._logDecoder.getTxWithDecodedLogsAsync(txHash); return tx; } + public async revokeConfirmationAsync(txId: BigNumber, from: string): Promise { + const txHash = await this._multiSig.revokeConfirmation.sendTransactionAsync(txId, { from }); + const tx = await this._logDecoder.getTxWithDecodedLogsAsync(txHash); + return tx; + } public async executeTransactionAsync(txId: BigNumber, from: string): Promise { const txHash = await this._multiSig.executeTransaction.sendTransactionAsync(txId, { from, -- cgit v1.2.3