From 6c8fb370dc562b128fc24a19e3f7bbf8b5381425 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Tue, 9 Oct 2018 13:57:02 -0700 Subject: Update order-watcher to use new migrations functions --- packages/order-watcher/test/utils/migrate.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/order-watcher/test/utils/migrate.ts (limited to 'packages/order-watcher/test/utils') diff --git a/packages/order-watcher/test/utils/migrate.ts b/packages/order-watcher/test/utils/migrate.ts new file mode 100644 index 000000000..adcc22b1a --- /dev/null +++ b/packages/order-watcher/test/utils/migrate.ts @@ -0,0 +1,13 @@ +import { devConstants } from '@0xproject/dev-utils'; +import { runMigrationsOnceAsync } from '@0xproject/migrations'; +import { ContractAddresses } from '@0xproject/types'; + +import { provider } from './web3_wrapper'; + +export async function migrateOnceAsync(): Promise { + const txDefaults = { + gas: devConstants.GAS_LIMIT, + from: devConstants.TESTRPC_FIRST_ADDRESS, + }; + return runMigrationsOnceAsync(provider, txDefaults); +} -- cgit v1.2.3