aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-06 04:24:21 +0800
committerFabio Berger <me@fabioberger.com>2018-07-06 04:24:21 +0800
commit0df36471b7f6dd53c4aa3c1d34b88e904b15c35f (patch)
treeecaad1f35f14a4627594522e5c0966665a5961ce /packages/order-watcher/test
parenta874cd2424b5a42aed7bcf287dbd4314237e3522 (diff)
downloaddexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.tar
dexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.tar.gz
dexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.tar.bz2
dexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.tar.lz
dexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.tar.xz
dexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.tar.zst
dexon-sol-tools-0df36471b7f6dd53c4aa3c1d34b88e904b15c35f.zip
Pass actual networkId
Diffstat (limited to 'packages/order-watcher/test')
-rw-r--r--packages/order-watcher/test/order_watcher_test.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/order-watcher/test/order_watcher_test.ts b/packages/order-watcher/test/order_watcher_test.ts
index f8175e103..2889051bc 100644
--- a/packages/order-watcher/test/order_watcher_test.ts
+++ b/packages/order-watcher/test/order_watcher_test.ts
@@ -46,16 +46,15 @@ describe('OrderWatcher', () => {
let taker: string;
let signedOrder: SignedOrder;
let orderWatcher: OrderWatcher;
- const config = {
- networkId: constants.TESTRPC_NETWORK_ID,
- };
const decimals = constants.ZRX_DECIMALS;
const fillableAmount = Web3Wrapper.toBaseUnitAmount(new BigNumber(5), decimals);
before(async () => {
- contractWrappers = new ContractWrappers(provider, config);
- // tslint:disable-next-line:no-unused-variable
const networkId = await web3Wrapper.getNetworkIdAsync();
- orderWatcher = new OrderWatcher(provider, constants.TESTRPC_NETWORK_ID);
+ const config = {
+ networkId,
+ };
+ contractWrappers = new ContractWrappers(provider, config);
+ orderWatcher = new OrderWatcher(provider, networkId);
exchangeContractAddress = contractWrappers.exchange.getContractAddress();
userAddresses = await web3Wrapper.getAvailableAddressesAsync();
[, maker, taker] = userAddresses;