aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-10 21:06:35 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-10 23:47:38 +0800
commit1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1 (patch)
treeac433ab3493150c2f2226ff913f27bcdeb63a3dd /packages
parent97831e370255d8631e6f46f79f95fd30ddce36ac (diff)
downloaddexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.tar
dexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.tar.gz
dexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.tar.bz2
dexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.tar.lz
dexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.tar.xz
dexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.tar.zst
dexon-sol-tools-1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1.zip
Put ARTIFACTS_VERSION in a config
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/test/global_hooks.ts2
-rw-r--r--packages/0x.js/test/utils/constants.ts1
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/0x.js/test/global_hooks.ts b/packages/0x.js/test/global_hooks.ts
index 9d9d06918..b722ec6d9 100644
--- a/packages/0x.js/test/global_hooks.ts
+++ b/packages/0x.js/test/global_hooks.ts
@@ -13,6 +13,6 @@ before('migrate contracts', async function() {
gas: devConstants.GAS_ESTIMATE,
from: devConstants.TESTRPC_FIRST_ADDRESS,
};
- const artifactsDir = '../migrations/artifacts/1.0.0';
+ const artifactsDir = `../migrations/artifacts/${constants.ARTIFACTS_VERSION}`;
await runMigrationsAsync(provider, artifactsDir, defaults);
});
diff --git a/packages/0x.js/test/utils/constants.ts b/packages/0x.js/test/utils/constants.ts
index cf030259c..cf5da464c 100644
--- a/packages/0x.js/test/utils/constants.ts
+++ b/packages/0x.js/test/utils/constants.ts
@@ -6,4 +6,5 @@ export const constants = {
KOVAN_RPC_URL: 'https://kovan.infura.io/',
ROPSTEN_RPC_URL: 'https://ropsten.infura.io/',
ZRX_DECIMALS: 18,
+ ARTIFACTS_VERSION: '1.0.0',
};