aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/test/order_watcher_test.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-10 04:57:02 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:37:57 +0800
commit6c8fb370dc562b128fc24a19e3f7bbf8b5381425 (patch)
treeda516616c782d5c6e5f7c7df50927e69c51e9059 /packages/order-watcher/test/order_watcher_test.ts
parenta48e0a08bf4ea8a8fb0f08cfe5187a6291378afb (diff)
downloaddexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar
dexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.gz
dexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.bz2
dexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.lz
dexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.xz
dexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.zst
dexon-sol-tools-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.zip
Update order-watcher to use new migrations functions
Diffstat (limited to 'packages/order-watcher/test/order_watcher_test.ts')
-rw-r--r--packages/order-watcher/test/order_watcher_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-watcher/test/order_watcher_test.ts b/packages/order-watcher/test/order_watcher_test.ts
index 98a2fa089..e13d44396 100644
--- a/packages/order-watcher/test/order_watcher_test.ts
+++ b/packages/order-watcher/test/order_watcher_test.ts
@@ -3,7 +3,6 @@ import { ContractWrappers } from '@0xproject/contract-wrappers';
import { tokenUtils } from '@0xproject/contract-wrappers/lib/test/utils/token_utils';
import { BlockchainLifecycle, callbackErrorReporter } from '@0xproject/dev-utils';
import { FillScenarios } from '@0xproject/fill-scenarios';
-import { getContractAddresses } from '@0xproject/migrations';
import { assetDataUtils, orderHashUtils } from '@0xproject/order-utils';
import {
DoneCallback,
@@ -28,6 +27,7 @@ import { OrderWatcherError } from '../src/types';
import { chaiSetup } from './utils/chai_setup';
import { constants } from './utils/constants';
+import { migrateOnceAsync } from './utils/migrate';
import { provider, web3Wrapper } from './utils/web3_wrapper';
const TIMEOUT_MS = 150;
@@ -54,9 +54,9 @@ describe('OrderWatcher', () => {
const decimals = constants.ZRX_DECIMALS;
const fillableAmount = Web3Wrapper.toBaseUnitAmount(new BigNumber(5), decimals);
before(async () => {
+ const contractAddresses = await migrateOnceAsync();
await blockchainLifecycle.startAsync();
const networkId = constants.TESTRPC_NETWORK_ID;
- const contractAddresses = getContractAddresses();
const config = {
networkId,
contractAddresses,