aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils/multi_sig_wrapper.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-09-02 09:53:02 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-09-04 22:57:47 +0800
commit9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901 (patch)
tree6c7ec9b1320814a125c1218c4b0648209df73924 /packages/contracts/test/utils/multi_sig_wrapper.ts
parent3f1586045c61024d03a338a7d464e77d9af526b2 (diff)
downloaddexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.tar
dexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.tar.gz
dexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.tar.bz2
dexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.tar.lz
dexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.tar.xz
dexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.tar.zst
dexon-sol-tools-9deec8ec353f21fcdbb8f7edb6a844fdf2ea9901.zip
Add more tests for MultiSigWalletWithTimeLock
Diffstat (limited to 'packages/contracts/test/utils/multi_sig_wrapper.ts')
-rw-r--r--packages/contracts/test/utils/multi_sig_wrapper.ts5
1 files changed, 5 insertions, 0 deletions
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<TransactionReceiptWithDecodedLogs> {
+ 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<TransactionReceiptWithDecodedLogs> {
const txHash = await this._multiSig.executeTransaction.sendTransactionAsync(txId, {
from,