aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/test/utils/migrate.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-10 05:17:40 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:37:57 +0800
commit1b8b2c0b9b998f42ded72f56c799a7951ed5239f (patch)
tree7c90b402b6d6f737a514b6809673fb6cdf8a2fec /packages/order-watcher/test/utils/migrate.ts
parent6c8fb370dc562b128fc24a19e3f7bbf8b5381425 (diff)
downloaddexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.tar
dexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.tar.gz
dexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.tar.bz2
dexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.tar.lz
dexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.tar.xz
dexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.tar.zst
dexon-0x-contracts-1b8b2c0b9b998f42ded72f56c799a7951ed5239f.zip
Appease linter
Diffstat (limited to 'packages/order-watcher/test/utils/migrate.ts')
-rw-r--r--packages/order-watcher/test/utils/migrate.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/order-watcher/test/utils/migrate.ts b/packages/order-watcher/test/utils/migrate.ts
index adcc22b1a..26412d246 100644
--- a/packages/order-watcher/test/utils/migrate.ts
+++ b/packages/order-watcher/test/utils/migrate.ts
@@ -4,6 +4,11 @@ import { ContractAddresses } from '@0xproject/types';
import { provider } from './web3_wrapper';
+/**
+ * Configures and runs the migrations exactly once. Any subsequent times this is
+ * called, it returns the cached addresses.
+ * @returns The addresses of contracts that were deployed during the migrations.
+ */
export async function migrateOnceAsync(): Promise<ContractAddresses> {
const txDefaults = {
gas: devConstants.GAS_LIMIT,