aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-19 21:11:59 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 23:01:36 +0800
commit850d32d60ca4f6eb20b8b626d93c4786937e9309 (patch)
treeb336cc18e098519da15fac0341023717178348d3 /packages/contracts
parenteb881b9729374c3eedb4914e5293535e890296af (diff)
downloaddexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.tar
dexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.tar.gz
dexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.tar.bz2
dexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.tar.lz
dexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.tar.xz
dexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.tar.zst
dexon-sol-tools-850d32d60ca4f6eb20b8b626d93c4786937e9309.zip
Remove truffle from MultiSigWalletWithTimeLock tests
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/test/multi_sig_with_time_lock.ts14
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/contracts/test/multi_sig_with_time_lock.ts b/packages/contracts/test/multi_sig_with_time_lock.ts
index 5cd4dba3d..d41aae38b 100644
--- a/packages/contracts/test/multi_sig_with_time_lock.ts
+++ b/packages/contracts/test/multi_sig_with_time_lock.ts
@@ -1,7 +1,8 @@
-import { RPC } from '@0xproject/dev-utils';
+import { BlockchainLifecycle, RPC } from '@0xproject/dev-utils';
import { BigNumber, promisify } from '@0xproject/utils';
+import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as chai from 'chai';
-import Web3 = require('web3');
+import * as Web3 from 'web3';
import * as multiSigWalletJSON from '../../build/contracts/MultiSigWalletWithTimeLock.json';
import * as truffleConf from '../truffle.js';
@@ -22,8 +23,13 @@ const expect = chai.expect;
// with type `any` to a variable of type `Web3`.
const web3: Web3 = (global as any).web3;
-contract('MultiSigWalletWithTimeLock', (accounts: string[]) => {
- const owners = [accounts[0], accounts[1]];
+describe('MultiSigWalletWithTimeLock', () => {
+ const web3Wrapper = new Web3Wrapper(web3.currentProvider);
+ let owners: string[];
+ before(async () => {
+ const accounts = await web3Wrapper.getAvailableAddressesAsync();
+ owners = [accounts[0], accounts[1]];
+ });
const SECONDS_TIME_LOCKED = 10000;
let multiSig: ContractInstance;